Different types of inheritance

Illustrate different types of inheritance?

E

Expert

Verified

OOP contains four types of inheritance:

i. Single inheritance – It contains one derived class and one base class .
ii. Hierarchical inheritance – It contains multiple derived classes of a similar base class and one base class
iii. Multilevel inheritance – It contains a class derived from the derived class
iv. Multiple inheritance – It contains many base classes and the derived class

All .NET languages hold single, hierarchical, and multilevel inheritance. They do not support multiple inheritances since in these languages; the derived class cannot contain more than single base class. Though, we can apply multiple inheritance in .NET through interfaces.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.