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:
- Single Inheritance: In this type of inheritance, a class inherits from only one class.
- Multiple Inheritance: Multiple Inheritance is a type of inheritance where a class can inherit from more than one classes.
- Multilevel Inheritance: In this type of inheritance, a derived class is created from another derived class.
- Hierarchical Inheritance: In this type of inheritance, more than one child class is inherited from a base class.