Types of Inheritance
Get introduced to the types of inheritance in Java.
We'll cover the following
The following are the types of inheritance in Java:
- Single-level inheritance
- Multilevel inheritance
- Hierarchical inheritance
Let’s understand what each type means.
Single-level inheritance
In single-level inheritance, a class inherits properties from a single class. For example, class B inherits class A.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy