Hybrid Inheritance

Hybrid Inheritance :

Inheritance involving more than one types is called Hybrid inheritance.

In the following figure we can see, single inheritance 1(between  A and B) ,multiple inheritance(involving B,C,D), multi-level inheritance & hierarchical inheritance

Hybrid inheritence
Following program illustrates the hybrid inheritance in C++ having hierarchical (involving B,D&A) and multilevel(involving B,C&A) and single inheritance(involving B &D):

OUTPUT :

 

Leave a Reply

Your email address will not be published. Required fields are marked *