Single Inheritance
Saying class checking : public account when defining the
checking class indicates that checking is a derived class.
The keyword public tells the compiler that all public
members of the account class remain public in the
checking class (i.e., public derivation is taking place).
The name account tells the compiler that the checking
class is derived from the account class.
The account class is the direct base class for checking and
savings.