The Artima Developer Community
Sponsored Link

Tune in next month

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Tune in next month

Posted by Bill Venners on 05 Nov 1998, 4:24 PM

> You really sould not discuss inheritance vs. composition but you
> should discuss inheritance vs. composition-interfaces. Any other
> way makes the discussion incomplete.
> For all of you who want to read a very good text on inheritance
> vs. composition-interfaces, specially on the person-employee
> issue, please read the book : 'Java Design : Building better Apps
> & Applets' by Peter Coad. There is a complete chapter on
> inheritance vs. compositon-interfaces.

> For the person-employee issue : An employee is not a special kind
> of person, it is a normal person like you and me.
> Employee is just a role you play in life as a person.
> Therefor do not use inheritance.

I divided my whole discussion of composition, inheritance, and
interfaces into two articles. I talk all about interfaces,
including how interfaces affect composition, in next month's
article, which will go live at JavaWorld on Nov 15th.

bv




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us