Unified Modeling Language Reference Manual, The, Second Edition
by James Rumbaugh, Ivar Jacobson, Grady Booch
composite object
An instance of a composite class.
See composition, structured classifier.
Semantics
A composite object has a composition relationship to all of its composite parts. This means that it is responsible for their creation and destruction, and that no other object is similarly responsible. In other words, there are no garbage collection issues with the parts; the composite object can and must destroy them when it dies, or else it must hand over responsibility for them to another object.
The composition relationship is often implemented by physical containment within the same data structure as the composite object itself (usually a record). Physical containment ensures that the lifetime of the parts matches the lifetime of the composite ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access