Syllabus

  1. 01EncapsulationBundle data with the operations that keep it valid: invariants, access specifiers, getters and setters, const correctness, static members and friends.8 lessons
    1. 01Objects That Protect Their Data
    2. 02Access Specifiers, Accessors and const
    3. 03Reading Access and const Errors
    4. 04Constructors, this and Default Arguments
    5. 05Nested Classes and Status Codes
    6. 06Static Members and Friends
    7. 07Project: Smart Lock
    8. 08Quiz: Encapsulation
  2. 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
    1. 01Base and Derived Classes
    2. 02Protected Members and Inheritance Modes
    3. 03Redefining and Reusing Base Behavior
    4. 04Construction Order and Inherited Constructors
    5. 05Five Shapes of Hierarchy
    6. 06Multiple Inheritance and the Diamond
    7. 07Project: Bakery Menu
    8. 08Quiz: Inheritance
  3. 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
    1. 01Compile-Time Polymorphism
    2. 02Virtual Functions
    3. 03Virtual Destructors and Slicing
    4. 04Safe Downcasting with dynamic_cast
    5. 05Project: Robot Tournament
    6. 06Quiz: Polymorphism
  4. 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
    1. 01Abstract Classes and Pure Virtual Functions
    2. 02Programming to Interfaces
    3. 03Hiding Implementation Details
    4. 04Project: Smart Home Hub
    5. 05Quiz: Abstraction