Inheritance in Oops ?
Inheritance
Inheritance is the reusability of code. In other words, The properties or features of the object of that class is acquire to another object of another class is known as inheritance.
- Types -:
- Single level Inheritance
- Multiple Inheritance
- Multilevel Inheritance
- Hierarchical Inheritance
- Hybrid Inheritance
1. Single level Inheritance -: When one class inherits only one class.
2. Multiple Inheritance -: When one class inherits from more than one class.
2. Multiple Inheritance -: When one class inherits from more than one class.
No comments