
460 Fundamentals of Computer Programming and IT
18.5 SINGLE INHERITANCE
When only one class is derived from a single base class
such derivation of a class is known as single inheritance,
further, the derived class is not used as a base class. This
type of inheritance uses one baseand one derived class.
The new class is termed as derived class and the old
class is called as base class as shown in Figure 18.7.
A derived class inherits data member variables and func-
tions of base class. However, constructors and destruc-
tors of base class are not inherited in derived class.
The newly created class receives entire characteristics
from its base class. ...