Multiple Inheritance
Learn what multiple inheritance is and how it can be implemented in Java.
We'll cover the following...
What Is multiple inheritance?
When a class is derived from more than a single base class, i.e. when a class has more than one immediate parent classes, it is an instance of Multiple Inheritance. Example:
- A Hyundai
Elantra
IS ACar
- A Hyundai
Elantra
IS ASedan
as well
Implementation
In Java, a class can’t extend from more than one class. So the ...