What is multiple inheritance? Is it supported by Java?

Asked 7 years ago
Updated 7 years ago
Viewed 613 times

0

What is multiple inheritances? Is it supported by Java?


1 Answer


1

When a child class inherits the property of multiple parent classes, its known as Multiple Inheritance.

What is multiple inheritance? Is it supported by Java?

Java is not supported Multiple Inheritance, because if child class inherits the property of multiple parent class, and if multiple parents have the same method name, then at runtime it's difficult to the compiler to decide which method to execute from the child class.


answered 7 years ago by Hemant Patel

Your Answer