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 into the flame war between Object Oriented Programming vs. Functional Programming slightly (a considerable deal of) biased towards OOP in a way that is hard to follow, but that does not matter as the *h*t 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
Slides
- PDF 4 (courtesy of Martin Pergel)
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:
L03 - 16.10.2018
Topic: Introduction to C Part 3
Details:
- Struct, typedefs, linked list, custom “safe string”
- Files
Slides:
VS2017 Solution from the lecture:
L02 - 09.10.2018
Topic: Introduction to C Part 2
Details:
- We discussed pointer, arrays, dynamic allocation
- Struct, typedefs, linked list
Slides:
VS2017 Solution from the lecture:
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