Java Tutorial # 16 | Multiple Inheritance - Why it is not part of Java? | Java9s

preview_player
Показать описание
This video explains why java creators have decided not to include Multiple Inheritance in Java. Multiple Inheritance brings complexity and confusion in design and implementation. This concept is also called Diamond of Death and i have explained in the video why they call it that way.
Рекомендации по теме
Комментарии
Автор

But we have a final/static data variable of interfaces which can be extended by the subclasses or the classes which will implement it.So in that way we are using the value of interface's variable.

sharadjash
Автор

Good explanation. How is that multiple inheritance is allowed in cpp ?

sriramsantosh
Автор

why doesn't abstract class not participated in multiple inheritacne of
 java

Taxsaviour-suresh
Автор

Sir you didn't tell us that we can achieve multiple inheritance using interfaces

josephstanley
Автор

Interfaces does not have implementation for methods.The classes which implement interfaces are expected to implement the methods else they need to be marked as abstract. So, when you create an object of the concrete class, this object will have implementation of all the methods. An interface is allowed to extend any number of interfaces because the implementation is taken care in subclasses.

javas
Автор

But It supports in case of Interfaces...

sharadjash