Multiple inheritance in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Multiple inheritance in java

Java classes follow a multilevel single-inheritance pattern in which every class has exactly one direct parent class, with all classes eventually inheriting from java.lang.Object. Also we said that "Java doesn't support multiple inheritance.". We can write the interface in the following manner in java. interface A{} interface B{} interface C extends A,B{} So, Why does Java not support multiple inheritance is my question.

26th May 2022, 11:59 AM
Thineshan Panchalingam
Thineshan Panchalingam - avatar
1 Answer