Monday, July 23, 2007

Modeling Composition

Composition is a strong aggregation. where the life span of the member object depends on the life span of the aggregate. The aggregate has control over the creation and destruction of the member.



Figure 6-35: How to represent a composition relationship in UML.

In project team example the employees are assembled into a project team. But if the team is disbanded, the employees live on.
In theater event example uses composition, the performance would not continue to exist elsewhere on their own.

No comments: