<<< Modularity | Index | Aggregation Example >>> |
It is now a good time to examine various types of composition relationships between objects in greater detail.
The two major type of composition are association and aggregation.
All forms of composition are expressed as has-a relationship.
Aggregation presumes equal lifetimes of both outer object and its inner parts.
Association, on the other hand, makes inner parts visible from the outside, thus making association similar to navigable path from one object to another.
<<< Modularity | Index | Aggregation Example >>> |