First page Back Continue Last page Graphics
Abstract Base Classes
Defining a class that can't have objects is an abstract base class.
Defined by making one of the member functions a “pure virtual function”.
- virtual void FunctionName(int, int) = 0;
The ABC exists solely to serve as a base class.
You cannot instantiate an object of the base class.
Example Prata: acctabc