Simple demo programs to understand inheritance and types of inheritance like single inheritance, multilevel inheritance and heirarchial imheritance.
-
Updated
Jun 21, 2021 - Java
Simple demo programs to understand inheritance and types of inheritance like single inheritance, multilevel inheritance and heirarchial imheritance.
Single inheritance is a feature in Java where a class can inherit only one parent class. In other words, a subclass can only inherit from one superclass. This is also known as "is-a" relationship, where a subclass is a type of its superclass.
Add a description, image, and links to the single-inheritance topic page so that developers can more easily learn about it.
To associate your repository with the single-inheritance topic, visit your repo's landing page and select "manage topics."