Why does Java doesn t support multiple inheritance 2024?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at the United Nations Office on Drugs and Crime, Lives in Vienna, Austria.
C++ , Common lisp and few other languages supports multiple inheritance while java doesn't support it. Java doesn't allow multiple inheritance to avoid the ambiguity caused by it. One of the example of such problem is the diamond problem that occurs in multiple inheritance.
2023-05-07 07:22:26
评论(499)
Helpful(122)
Helpful
Helpful(2)

Oliver Brown
QuesHub.com delivers expert answers and knowledge to you.
C++ , Common lisp and few other languages supports multiple inheritance while java doesn't support it. Java doesn't allow multiple inheritance to avoid the ambiguity caused by it. One of the example of such problem is the diamond problem that occurs in multiple inheritance.