• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple Inheritance  RSS feed

 
Marilyn Monickam
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why does not Java support multiple inheritance?
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The short answer is: because Gosling said it was too hard.
--Mark
 
Marilyn Monickam
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay then in other words
what are the disadvantages of Multiple Inheritance?
 
Detlev Beutner
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Complexity.
But with the concept of the interfaces, you have some of the advanteges of multiple inheritance (you can implement many interfaces; you just really have to implement the complete stuff).
Hope it helps
Detlev
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!