Types of Inheritance

Get introduced to the types of inheritance in Java.

The following are the types of inheritance in Java:

  1. Single-level inheritance
  2. Multilevel inheritance
  3. 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