Types of Inheritance

Explain the types of Inheritance.

E

Expert

Verified

Inheritance in OOPs is of four types,given as follows:

a) Single inheritance - Holds one base class and one derived class.

b) Hierarchical inheritance - Comprises of one base class and multiple derived classes of the same base class.

c) Multilevel inheritance - Has a class derived from derived class.

d) Multiple inheritance - Has several base classes and a derived class.

All .NET languages supports single, hierarchical, and multilevel inheritance. They do not support multiple inheritance since, in these languages, a derived class could not have more than one base class. Though, multiple inheritance in.NET can be implemented with the help of interfaces.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.