Comparing inheritance and composition

Posted by Dan on Stack Overflow See other posts from Stack Overflow or by Dan
Published on 2010-04-06T15:48:53Z Indexed on 2010/04/06 15:53 UTC
Read the original article Hit count: 285

Could someone give an example of using inheritance vs composition and also when its best to use composition as opposed to inheritance.

Thanks for any replies.

© Stack Overflow or respective owner

Related posts about software-engineering

Related posts about inheritance