The Artima Developer Community
Sponsored Link

Legacy Design Forum
Composition Versus Inheritance

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:

Inheritance - delegation

Posted by sandip on February 08, 2001 at 9:17 PM

Hi,

I liked the and feel that the example will help a lot.
My suggestion would be to give different example in case of composition becaue Fruit example does not suits.

-Sandip



Replies:

Sponsored Links



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