The Artima Developer Community
Sponsored Link

Composition and return values

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:

Composition and return values

Posted by Alex Pushkin on 03 Nov 1998, 2:35 AM

Hi all,

Just read Bill's "Composition versus Inheritance" and I felt
that it was very valuable. One thing though, composition is
indeed more appropriate combined with "delegation" only if the
method call that is forwarded has a return value. This is
probably another topic, but when should a method have return
values? Any rule of thumb for that?
How OO is the use of return values?

cheers,
Alex.



Replies:

Sponsored Links



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