why is java not use mutiple inheretance
Answers
Answered by
25
Multiple inheritance is not supported because it leads to deadly diamond problem. ... An interface is a contract of things your class has to implement.

Java supports multiple inheritancethrough interfaces only. A class can implement any number of interfaces but can extend only one class.
Hpe it helps✔☺
#Be BRAINLY✔✔✔✔✔✔
AND MARK ME AS BRAINLIEST.
FOLLOW ME TO GET MORE HELP✔
⛝⛝⛝⛝⛝⛝⛝
Java supports multiple inheritancethrough interfaces only. A class can implement any number of interfaces but can extend only one class.
Hpe it helps✔☺
#Be BRAINLY✔✔✔✔✔✔
AND MARK ME AS BRAINLIEST.
FOLLOW ME TO GET MORE HELP✔
⛝⛝⛝⛝⛝⛝⛝
Similar questions