Java Multiple Inheritance (manohar academy)

Опубликовано: 28 Сентябрь 2024
на канале: ManoharAcademy
52
0

Welcome to manohar academy.
In this lesson we learn about java multiple inheritance.

Multiple Implementation Inheritance is not allowed in Java.
Multiple Interface Inheritance is allowed.

Supporting multiple implementation inheritance will make the language very complex. Hence it is not supported in Java, to keep it simple.

Supporting multiple interface inheritance will add some complexity. But it is reasonable.
Example: Incompatible interfaces that can not be implemented at the same time.