C++ Language



Admission Enquiry Form

  




What is inheritance? Types of Inheritance.

Inheritance is one of the feature of Object-oriented programming in C++.In it we can create a new class (derived class) from an existing class(base class).Inheritance is a mechanism of acquiring the features and behaviors of a class by another class.The class whose members are inherited is called the base class, and the class that inherits those members is called the derived class.

The derived class inherits the features from the base class and can have additional features of its own.

Types of Inheritance

  • Single Inheritance
  • Multilevel Inheritance
  • Multiple Inheritance
  • Hierarchical Inheritance
  • Hybrid Inheritance


Single inheritance



Multilevel Inheritance



Multiple Inheritance



Hierarchical Inheritance



Hybrid Inheritance