Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 8904

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
 
wood burning stoves
 
subject: disadvantage of inheritance
 
Similar Threads
Disadvantage for the Inheritance
WA #1.....word association
Realization/Generalization?
4 key points about Oops
Field hiding