6.8.  Managed Containers, Composites and Aggregates

[ fromfile: inheritance-intro.xml id: managedcontainers ]

Figure 6.4.  Aggregates and Compositions

Aggregates and Compositions

[Note]Note

This suggested design does impose some limitations on possible use of Address – in particular, there is no easy way to find all Customers at a particular Address. If Address and Customer were independently managed, then you could form bidirectional relationships between the classes.

An aggregate container is a container that provides only an indexing or reference navigation mechanism to its contents.

[Note]Note

A managed container is a composition, and an unmanaged container of objects is usually (but not always) represented in a UML diagram as aggregation.