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

Posted by Ben on August 05, 2001 at 5:33 AM

> First, the shown method of substituting composition for inheritance is the standard way VB does inheritance (except,of course an 'implements' clause which forces the subclass to have all methods provided by the parent.
> They call it 'inheritance by delegation' . I've seen developers snorting at this 'inferior' method of doing things... including me. :-)

>
> More on the inheritance/delegation talk :

> I was trying to answer the questions posed by the author
> and came up with this
>
Replies:


Sponsored Links



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