📖 Book · oops · high

🏛️ Object-Oriented Programming in C++

The four pillars and every OOP interview topic — with runnable code and animations.

A consolidated, runnable tour of object-oriented C++: the four pillars (encapsulation, abstraction, inheritance, polymorphism), access specifiers & inheritance modes, virtual dispatch and object slicing, abstract classes and interfaces, overloading vs overriding vs hiding, composition vs inheritance, and upcasting/downcasting with dynamic_cast & RTTI. Seven verified in-browser examples plus embedded animations and links to every deep-dive lesson.

8 chapters▶ runnable code✦ in-depth animation

What this book covers

  1. 01The four pillars
  2. 02Inheritance & access control
  3. 03Polymorphism & virtual dispatch
  4. 04Abstract classes & interfaces
  5. 05Overloading vs overriding vs hiding
  6. 06Composition vs inheritance
  7. 07Casting & RTTI
  8. 08Interview cheat sheet

Read it in full — runnable C++ + step-through animations

Every chapter of Object-Oriented Programming in C++ ships complete, editable code you compile and run in the browser, plus the same in-depth animations as the lessons.