हिंदी

Types of Inheritance

Advertisements

Topics

Types of Inheritance:

There are various types of inheritance: 

(a) Single Inheritance: If a derived class is derived by a single base class, then it is known as a single inheritance. 

(b) Multiple Inheritance: When a derived class inherits from multiple base classes, it is known as multiple inheritance. 

(c) Hierarchical Inheritance: When many derived classes inherit from a single base class, it is known as hierarchical inheritance. 

(d) Nested or Multilevel Inheritance: A target that inherits a base class can in turn be used as a base for another target. Such a system is known as multilevel inheritance. 

(e) Hybrid Inheritance: When more than one type of inheritance system is used together, it is known as hybrid inheritance. 

If you would like to contribute notes or other learning material, please submit them using the button below.
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×