aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes disadvantage of inheritance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "disadvantage of inheritance" Watch "disadvantage of inheritance" New topic
Author

disadvantage of inheritance

feroz muhamed
Ranch Hand

Joined: Nov 15, 2003
Posts: 87
please give me some disadvantages of inheritance(interview qn)
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Tight coupling.


Groovy
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
An article called Why Extends Is Evil will surely list one or two. Holub exaggerates a bit, but has some solid examples of the perils of inheritance.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: disadvantage of inheritance