java inheritance example

Types of Inheritance Tutorial Java

Types of Inheritance There exists basically three types of inheritance. Multilevel inheritance Multiple inheritance Hierarchical inheritance 1. In single inheritance, one class extends one class only. In multilevel inheritance, the ladder of single inheritance increases. 2. In multiple inheritance, one class directly extends more than one class. 3. In hierarchical…