Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

inheritance  RSS feed

 
aditya kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Report post to moderator
Java suppors multiple inheritance,but can anybody justify that it only supported single inheritance.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Report post to moderator

Java suppors multiple inheritance

No it doesn't. At least, not concrete inheritance: a class can only extend directly from one other.

Of course, a class can implement as many interfaces as it likes.
 
Campbell Ritchie
Sheriff
Posts: 53769
127
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question twice.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!