nSaying class checking : public account when defining the checking class indicates that checking is a derived class.
nThe 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).
nThe name account tells
the compiler that the checking class
is derived from the account class.
nThe account class is the direct base class for checking and savings.