<<< Association in Java and C++ compared | Index | Aggregation in UML (containment by reference) >>> |
Both represent
part - whole,
element - collection,
component - container
type relationships.
In composition,
The component object can only be part of one container obect.
The parts and the whole have the same persistence in time (longevity.)
<<< Association in Java and C++ compared | Index | Aggregation in UML (containment by reference) >>> |