Composition in UML (source code)

= Composition in UML

A strong whole-part relationship in a <UML class diagram>, conventionally marked by a filled diamond at the whole. It expresses exclusive composite ownership and associated lifetime constraints. A stored reference or observer-registration association alone does not establish composition: the same observer may be registered with several subjects unless the design forbids it.