+1 vote
in Class 12 by kratos

Explain briefly the types of inheritance.

1 Answer

+3 votes
by kratos
 
Best answer

1. Single inheritance:
A derived class with only one base class is called single inheritance. For example, If A is base class then class B derive from base class A.

2. Multilevel inheritance:
A class can be derived from another derived class which is known as multilevel inheritance. For example, The derived class C inherit B class whereas B is derived from class A.

3. Hierarchical inheritance:
When the properties of one class are inherited by more than one class, it is called hierarchical inheritance. For example, classes B, C, and D are derived from base class A.

4. Hybrid inheritance:
It is the combination of hierarchical and multilevel inheritance. For example, The derived class D derive from the classes B and C whereas both the classes B and C are derived from base class A.

...