Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

disadvantage of inheritance

 
feroz muhamed
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please give me some disadvantages of inheritance(interview qn)
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tight coupling.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic