Start here · Essential guide
Abstract Classes in C++
Learn what an abstract class is in C++, how pure virtual functions work and which mistakes to avoid, with a complete example you can compile and run.
Classes and Design
What abstract classes are for and how they support abstraction in OOP.
Start here · Essential guide
Learn what an abstract class is in C++, how pure virtual functions work and which mistakes to avoid, with a complete example you can compile and run.
In object-oriented programming, an abstract class is a base class that cannot be instantiated on its own. Here is what that means in Java, C#, Python and C++.
Abstraction in programming is often split into three types: data, control and procedural. Here is what each one means, with a short C++ example for each.
An abstract class defines a shared interface, blocks direct object creation and forces derived classes to fill in key functions. Here is how that works in C++.
Related topics