This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Composition Vs Inheritance

 
anagha patankar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody ,
At the onset with due respect to all - I would like to state that I am not interested into getting into the details pertaining to UML notation .

Have tried googling around - and the only reason that I could understand
was that in case of inheritance it is difficult to change the
superclass method signature ( would cause a break in implementation classes )

so question is - is this the only reason that one should choose composition ?
Agreed that one must make a judgemental call - could someone point me to some
articles that compare when to use composition , when not to and similarly regarding inheritance .

Finally - is this the right forum for such questions ?

Thanks,
-anagha
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic