How to Study
- Write from scratch: You cannot learn programming by just reading notes. You must write and run the code yourself.
- Don't rely on AI too early: When you get stuck, try to debug it yourself first. Resorting to AI immediately skips the critical learning process.
Course Roadmap
Each week builds directly on previous ones. Follow this path top-to-bottom.
Classes and objects: getters and setters, constructors and destructors.
Object parameters, separate header and source files, arrays of objects.
Const members, static members and composition.
A mock exam on paper: tracing constructors and destructors, finding const and static errors, and writing classes.
Dynamic memory, deep copy, this pointer and friend functions.
Base and derived classes, constructors and destructors in derived classes, and multiple inheritance.
Base-class pointers, virtual functions and virtual destructors.
Member operators, comparison and increment operators, and friend functions for streams.
A mock exam on paper covering the whole course, with most questions from Weeks 5 to 8: tracing inheritance and virtual functions, finding compile errors, and writing classes.