Definition I: - PabitraBhandari/2143-OOP-Bhandari GitHub Wiki

Inheritance:

Definition:

The capacity of a sub-class to inherit the properties of a base-class is called inheritance.

There are different types of inheritance:

  1. Single Inheritance: In this type of inheritance, a class inherits from only one class.
  1. Multiple Inheritance: Multiple Inheritance is a type of inheritance where a class can inherit from more than one classes.
  1. Multilevel Inheritance: In this type of inheritance, a derived class is created from another derived class.
  1. Hierarchical Inheritance: In this type of inheritance, more than one child class is inherited from a base class.

Source:

https://www.geeksforgeeks.org/inheritance-in-c/