Learn Object-Oriented Programming (OOP) with C++
Master the four pillars of object-oriented programming in C++: encapsulation, inheritance, polymorphism and abstraction, each practiced in a small project.
- Intermediate level
- 4 modules
- 27 lessons
- 92 tasks and questions
Syllabus
01EncapsulationBundle data with the operations that keep it valid: invariants, access specifiers, getters and setters, const correctness, static members and friends.8 lessons
02InheritanceBuild class hierarchies: derive classes, call base constructors, use protected members and inheritance modes, redefine and reuse base behavior, and know when composition is the better choice.8 lessons
03PolymorphismMake one interface work for many types: compile-time polymorphism with overloading and templates, runtime polymorphism with virtual functions, virtual destructors, object slicing, and safe downcasting.6 lessons
04AbstractionHide complexity behind simple, stable interfaces: abstract classes and pure virtual functions, interfaces and programming against them, and designing classes whose users never need to know the details.5 lessons