Java OOPS – Part 2 – types of Inheritance with examples
Inheritance Inheritance is a mechanism wherein a new class (child class) is derived from an existing class (parent class), child classes may inherit or acquire the properties and methods of parent classes. Types of inheritance Single / multi level inheritance Hierarchical inheritance Benefits of inheritance Reusability Extensibility Saves time and effort Provides clear model structure For details, watch…