Grokking Java Intermediate
Ask Author
Back to course home

0% completed

Vote For New Content

Multilevel Inheritance
Table of Contents

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

Multilevel Inheritance is a type of inheritance in Java where a class is derived from a subclass, creating a chain of inheritance. In other words, a subclass becomes the superclass for another subclass. This forms a multilevel hierarchy, allowing the properties and behaviors of multiple classes to be inherited through different levels.

Syntax of Multilevel Inheritance

The syntax for implementing multilevel inheritance involves chaining the extends keyword. Here's the general structure:

class GrandparentClass { // Grandparent class members }

.....

.....

.....

Like the course? Get enrolled and start learning!

Table of Contents

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible