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

September 14, 2010 Posted by | Web Design | 1 Comment