DEV Community

hema latha
hema latha

Posted on

Hierarchical inheritance in Java

Hierarchical inheritance in Java is a type of inheritance
Where a single parent class is extended by multiple child classes.
Each child class inherits the property and method of the parents class but can also define its own unique features

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more