+ 2

Why java doesn't support multiple inheritence ???

28th Aug 2016, 2:36 AM
suji prem
suji prem - avatar
2 Réponses
+ 3
It is just to remove ambiguity, because multiple inheritance can cause ambiguity in few scenarios. One of the most common scenario is Diamond problem. But in java 8 we can add static methods and defaults methods in interfaces by this we can achieve multiple inheritance.
28th Aug 2016, 3:10 AM
Agha Asad Khan
Agha Asad Khan - avatar
0
for example,the one has only one father...
28th Aug 2016, 3:38 AM
xinpengfei