Object-Oriented Programming (OOP) Tutorial

Write code that is easier to understand, maintain, and grow. Learn the principles of object-oriented programming and discover how thoughtful software design leads to better applications. This track teaches OOP in C++; the same ideas are covered for Python, Java, and JavaScript in the lessons linked below.

All OOP lessons

7 lessons, in the order we recommend taking them.

Start with lesson 1
  1. 1OOP Introduction
  2. 2Encapsulation
  3. 3Constructors & Destructors
  4. 4Access Modifiers & Pointers
  5. 5Static Members & Friends
  6. 6Inheritance
  7. 7Polymorphism

Keep going