Bookmark Topic Watch Topic
  • New Topic

inheritance

 
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
Marshal
Posts: 52581
119
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question twice.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!