This is an old revision of the document!
Object Oriented Programming - Lectures 2018/2019
This page contains materials for the first half of lectures for Object Oriented Programming (NMIN201) course that is being/has been taught during winter semester 2018/2019 at Charles University in Prague, Czech Republic.
The first half will be dedicated to C language and we will tenderly touch C++. These lectures will be given by me (Jakub Gemrot).
Slides we will be using are based and/or were completely created by Martin Pergel.
The second half of lectures (about C# language) will be led by Martin Pergel.
Permalink: http://bit.ly/mff-uk-oop-lecture-2018
History: http://bit.ly/mff-uk-oop-lecture-2017, http://bit.ly/mff-uk-oop-lecture-2016
Dates
Lectures
L05 - 30.10.2018
Topci: Introduction to C++ Part 1
Tip:
- If you want to get kickstarted to the flame war between Object Oriented Programming vs. Functional Programming, in a way that is hard to follow, but that does not matter as the st is real, read this edit on Quora Details: * First, we start what might seem bad at pure-C * Then, we detail how that might be addressed using OOP and therefore C++ * Hopefully, it gives us enough ammunition to deal with con/destructors, methods, overloading, composition and inheritance =====L04 - 23.10.2018===== Topic: Introduction to C Part 4 Details: * Preprocessor * Enums * We have started with C++! But I forgot to show you unions from C, I will start with them next week. Slides: * PDF 3 (courtesy of Martin Pergel) * the rest of the slides VS2017 Solution from the lecture: * Solution L04 =====L03 - 16.10.2018===== Topic: Introduction to C Part 3 Details: * Struct, typedefs, linked list, custom “safe string” * Files Slides: * PDF 3 (courtesy of Martin Pergel) * a few first slides * PDF 2 (courtesy of Martin Pergel) * slides 19+ VS2017 Solution from the lecture: * Solution L03 =====L02 - 09.10.2018===== Topic: Introduction to C Part 2 Details: * We discussed pointer, arrays, dynamic allocation * Struct, typedefs, linked list Slides: * PDF 1 (courtesy of Martin Pergel) * slides 34-39 * PDF 2 (courtesy of Martin Pergel) * slides 01-18 VS2017 Solution from the lecture: * Solution L02 =====L01 - 2.10.2018===== Topic: Introduction to C Part 1**
Details:
- History of language C, Pascal vs. C (types, comments, procedures and functions, operators, return)
Slides: PDF 1 (courtesy of Martin Pergel)
- History of language C, Pascal vs. C (types, comments, procedures and functions, operators, return), if, for, while, switch
- We briefly touched the topic of pointers, arrays and “strings”
VS2017 Solution from the lecture:
Useful:
- Very simple C programs containing their in-depth explanations