May 2012
Intermediate to advanced
679 pages
16h 56m
English
We may now try for classification of classes! We can categorize various classes we use in our programs. So far we have seen only two types, i.e. abstract and normal (meaning non-abstract). The other types are basically used by advanced programmers. We will discuss them simply as introduction.
An abstract class is developed with the sole idea that it will be used as base for other derived classes. Therefore, it is sometimes referred as Abstract Base Class. Please note that there is no keyword abstract. Only a presence of pure virtual function makes a class abstract. The derived class has the responsibility to define each and every virtual method of the base class.
One simple definition of a concrete class ...
Read now
Unlock full access