TechnoBuzz

A Techno Blog, mainly about Java

Composition Over Inheritence Rules

We should avoid inheritance if we can.  Just like this post says:

The difference between is-a and has-a relationships is well known and a fundamental part of OOAD, but what is less well known is that almost every is-a relationship would be better off re-articulated as a has-a relationship

http://stackoverflow.com/questions/49002/prefer-composition-over-inheritance

Other good practice that was mentioned in software was http://www.kitchaiyong.net/2010/02/solid-principle.html

Advertisements

September 14, 2010 - Posted by | Web Design

1 Comment »

  1. The report offers confirmed useful to me. It’s very useful
    and you really are obviously extremely well-informed of this
    type. You have exposed our eye for you to numerous opinion of this subject with interesting and strong written content.

    Comment by Meridia | April 28, 2013 | Reply


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

%d bloggers like this: