OOP in C++ exercises with solutions
48 practice problems from the 15 lessons of the Object-Oriented Programming in C++ course, in lesson order and from easy to hard inside each lesson. Open a problem, write your code and press Submit: the tests run in your browser and nothing is sent to a server.
16 easy problems 17 medium problems 15 hard problems
From C to C++
4 problems · Read the lesson
References, overloading and default arguments
3 problems · Read the lesson
Classes and objects
3 problems · Read the lesson
Constructors and destructors
3 problems · Read the lesson
Objects on the heap: new and delete
3 problems · Read the lesson
Copying objects: shallow and deep copies
3 problems · Read the lesson
Static and const members
3 problems · Read the lesson
Operator overloading
4 problems · Read the lesson
Inheritance
3 problems · Read the lesson
Virtual functions and polymorphism
3 problems · Read the lesson
Abstract classes and interfaces
3 problems · Read the lesson
Templates
3 problems · Read the lesson
The standard library: vector, string, map and sort
4 problems · Read the lesson
Exceptions
3 problems · Read the lesson
Project: a small library system
3 problems · Read the lesson