English, asked by lizy1, 1 year ago

why java does not support multiple inheritance

Answers

Answered by boniiiii
0
Java supports multiple inheritance through interfaces only.A class can implement any number of interfaces but can extend only one class. Multiple Inheritance is not supported because it leads to deadly diamond problem. Because an interface is just a contract.

Hope you like the answer..
Similar questions