Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why can we extend only one class at a time in java and implement various?

 
Abhishek Reddy
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why can we extend only one class at a time in java and implement various?
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was a decision the language designers made. We just live with it. They had a goal of making things easier and less error prone than C++ and this is one place they chose to simplify.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google for "diamond of death"...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic