Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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: 55315
157
  • 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!