hierarchial inheritance

Definition:
when more than one derived class are created from a single base class, then that inheritance is called as hierarchical inheritance. Inheritance also be used to support to the hierarical design program.Many programming problem can be cast into a hierarchy where certain features of one level are shared by many other level.In c++ many problems can be converted into class hierarchies.The base class will include all the features common to the subclasses.A subclass can be constructed by inheriting the properties of base class
Example:

 

 

Inheritance types by s.kamatchi priyanka