Loading...

Object-Oriented Programming

Detailed topics on classes, inheritance, polymorphism, and operator overloading in object-oriented C++ programming.

Object-Oriented Programming

Classes, encapsulation, constructors/destructors, copy and move semantics; inheritance and polymorphism. Operator overloading and virtual/override are demonstrated with practical examples.

Goal: Use OOP principles effectively to design extensible and maintainable C++ software.

TL;DR

  • Class basics: fields, methods, access specifiers (public, private).
  • Lifetime: ctor/dtor, copy ctor, assignment operator.
  • Inheritance & polymorphism: virtual functions, override, abstract classes.
  • Operator overloading: operator<<, operator==, etc.