File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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: 8927

Tight coupling.

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
I agree. Here's the link:
subject: disadvantage of inheritance
It's not a secret anymore!