Why java does not support multiple inheritance ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why java does not support multiple inheritance ?

Beautiful inheritance

16th Mar 2019, 3:38 AM
Bhagya Lakshmi
2 Answers
+ 2
Thank you
16th Mar 2019, 4:57 AM
Bhagya Lakshmi
+ 1
Multiple Inheritance can lead to the diamond problem. The designers of java chose interfaces instead, you can do all the same things with them and you can implement as many as you want.
16th Mar 2019, 4:56 AM
Schindlabua
Schindlabua - avatar