Prefer composition over inheritance?

Posted by Readonly on Stack Overflow See other posts from Stack Overflow or by Readonly
Published on 2008-09-08T01:58:15Z Indexed on 2010/03/23 3:01 UTC
Read the original article Hit count: 261

Filed under:
|

Why prefer composition over inheritance? What trade-offs are there for each approach? When should you choose inheritance over composition?

© Stack Overflow or respective owner

Related posts about oop

Related posts about inheritance