Session 5
Session 5
Session 5
Session 5
Session Objectives
Describe Single Inheritance
Describe Base class and Derived class
Access Base class members and use pointers
in classes
Describe types of inheritance
Describe Constructors and Destructors under
inheritance
Describe how to call Member Functions of the
Base Class and Derived Class
Describe Container Classes
Single Inheritance
To maintain and reuse class objects
easily, we need to be able to relate
classes of similar nature to another.
Single inheritance is the process of
creating new classes from an existing
base class.
For example let us consider a program
in which we are dealing with people
employed in an organisation.
Single Inheritance (Contd.)
Employee