Inheritance in Java

Inheritance is one of the most important OOPS concepts where one class inherits or acquires the properties of another class. The class from which the properties are inherited is called Super class or Parent class The class which inherit the properties is called Subclass or Child class. We use “extends” keyword to achieve the same. […]

Share this article on

Types of Inheritance

Let us understand various types of inheritance with their example. There are various types of inheritance supported in Java and these types are defined based on the hierarchical structure of classes and they are as below 1) Single level inheritance 2) Multi level inheritance 3) Hierarchical inheritance 4) Hybrid inheritance (Supported only using interface) 5) […]

Share this article on
< Previous Next >