Extending property from one class to another class is called inheritance.
â€¢ Base class : A class which inherits its property to another is called base class.
â€¢ Derived class : A class in which properties are inherited called as derived class.
Types of inheritance
C++ support five types of inheritance
1. Single Inheritance
2. Multilevel Inheritance
3. Hierarchical Inheritance
4. Multiple Inheritance
5. Hybrid Inheritance