• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to know some thing about inheritance.

 
ajay_kumar_rana
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know why one class cannot inherit from more than one classes?
 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because of Deadly diamond of Death, read the below forum:
Deadly diamond of Death

Some more queries that might be useful to you:

implements Vs extends
 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a class implements 2 interfaces,in that case also problem of ambiguous data comes.So,how does interfaces help us to achieve multiple inheritance completely.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic