Wednesday, 23 January 2019

What are the different categories of inheritance

What are the different categories of inheritance?

Answer:


In C# inheritance may be implemented in different combinations as illustrated in figure and they include:
Inheritance in Object Oriented Programming is of four types:
Single inheritance: Contains one base class and one derived class.
Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class.
Multilevel inheritance: Contains a class derived from a derived class.
Multiple inheritances: Contains several base classes and a derived class.

No comments:

Post a Comment