Why Multiple inheritance is not in javv | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why Multiple inheritance is not in javv

Java

16th Nov 2018, 12:26 PM
Syed ghouse
Syed ghouse - avatar
5 Answers
+ 1
It's in java, but not class extends more than 1 class like C does Instead class implement interfaces For example class A implements B, C
16th Nov 2018, 1:08 PM
Taste
Taste - avatar
+ 3
Multiple Inheritance among classes may lead to Diamond Problem
24th Nov 2018, 3:48 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 1
It's still not the same thing though.
16th Nov 2018, 1:10 PM
HonFu
HonFu - avatar
0
Yeah it's not, but similiar And i always thought multiple inheritance are too ambiguous
16th Nov 2018, 1:16 PM
Taste
Taste - avatar
0
Multiple interitence is there in Java. Actually Java class does not support multiple interitence but Java interface does
19th Nov 2018, 10:45 AM
Rishi Anand
Rishi Anand - avatar