
- Java Tutorial
- Java - Home
- Java - Overview
- Java - Environment Setup
- Java - Basic Syntax
- Java - Object & Classes
- Java - Constructors
- Java - Basic Datatypes
- Java - Variable Types
- Java - Modifier Types
- Java - Basic Operators
- Java - Loop Control
- Java - Decision Making
- Java - Numbers
- Java - Characters
- Java - Strings
- Java - Arrays
- Java - Date & Time
- Java - Regular Expressions
- Java - Methods
- Java - Files and I/O
- Java - Exceptions
- Java - Inner classes
- Java Object Oriented
- Java - Inheritance
- Java - Overriding
- Java - Polymorphism
- Java - Abstraction
- Java - Encapsulation
- Java - Interfaces
- Java - Packages
- Java Advanced
- Java - Data Structures
- Java - Collections
- Java - Generics
- Java - Serialization
- Java - Networking
- Java - Sending Email
- Java - Multithreading
- Java - Applet Basics
- Java - Documentation
- Java Useful Resources
- Java - Questions and Answers
- Java - Quick Guide
- Java - Useful Resources
- Java - Discussion
- Java - Examples
Types of inheritance in Java
Java supports three types of inheritance −
- Single Level inheritance - A class inherits properties from a single class. For example, Class B inherits Class A.
- Multilevel inheritance - A class inherits properties from a class which again has inherits properties
- Hierarchical inheritance - Multiple classes inherits properties from a single class. For example, Class B inherits Class A and Class C inherits Class A.
- Related Articles
- Inheritance in Java
- How many types of inheritance are there in Python?
- Multilevel inheritance in Java
- Role of super Keyword in Java Inheritance
- Single level inheritance in Java
- Inheritance in C++ vs Java
- Java and multiple inheritance
- Interfaces and inheritance in Java Programming
- Object Serialization with inheritance in Java
- Multiple inheritance by Interface in Java
- Object Serialization with Inheritance in Java Programming
- Creating a Multilevel Inheritance Hierarchy in Java
- Difference between inheritance and composition in Java
- Does java support hybrid inheritance?
- What is diamond problem in case of multiple inheritance in java?

Advertisements