Unified Modeling Language Reference Manual, The, Second Edition
by James Rumbaugh, Ivar Jacobson, Grady Booch
destruction
The elimination of an object and the reclaiming of its resources. Conceptually, the destruction of a composite object leads to the destruction of its composite parts. Destruction of an object does not automatically destroy objects related by ordinary association or even by aggregation, but any links involving the object are destroyed with the object.
See also composition, final state, instantiation.
Semantics
Like creation, destruction can be modeled at two levels: a low level action that destroys the identity and storage for the object, and a higher-level operation that destroys composite parts owned by the object as well as performing other kinds of clean up implied by the semantics of a particular class. Both levels can exist within ...
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