Composition versus Inheritance

In many cases you should favor composition over inheritance, I was willing to write an article about this, but I prefer to redirect you to an existing article:

Composition versus Inheritance
A Comparative Look at Two Fundamental Ways to Relate Classes
by Bill Venners

http://www.artima.com/designtechniques/compoinh.html

I recommend reading other articles on this site because they mostly address fundamental design issues:

http://www.artima.com/lejava

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s