Legacy Design Forum Composition Versus Inheritance
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
> > I'm still not sure I understand aggregation. If I instantiate > an object and hand out references to it then it's aggregation > as opposed to composition, right? If so, what happens to the > references/pointers if the instantiating class goes away in > C++ and Java?