Why in Java there is no multilevel inheritance?
Answers
Answered by
3
HEY MATE.......
HERE IS UR ANSWER.......❤❤
In java this can never occur as there is no multiple inheritance. Here even if two interfaces are going to have same method, the implementing class will have only one method and that too will be done by the implementer. Dynamic loading of classes makes the implementation of multiple inheritance difficult.
HOPE IT HELPS YOU AND MARK AS BRAINLIEST......
HERE IS UR ANSWER.......❤❤
In java this can never occur as there is no multiple inheritance. Here even if two interfaces are going to have same method, the implementing class will have only one method and that too will be done by the implementer. Dynamic loading of classes makes the implementation of multiple inheritance difficult.
HOPE IT HELPS YOU AND MARK AS BRAINLIEST......
Answered by
0
Answer:
The reason behind this is to prevent ambiguity. Consider a case where class B extends class A and Class C and both class A and C have the same method display(). Now java compiler cannot decide, which display method it should inherit. To prevent such situation, multiple inheritances is not allowed in java.
Similar questions