4
Studying associations in UML ( aggregation and composition) I realized that the difference between them would be only the existence or not of the parts without the whole.
http://ericksasse.com.br/agregao-x-composio/
- Aggregation => Parts exist without the whole
- Composition => Parts do not exist without the whole
The two deal with rules in the Part object, but I couldn’t find anything that denoted rules in the Todo object, example:
An order (All) consists of items (Part), there are no items without the whole (composition), the question is that a request also does not exist without items, how to represent this rule in UML? that is, where I say that the whole object also does not exist without the part object?
Read in http://answall.com/q/86715/101
– Maniero
It seems to me that the only way to achieve what I mentioned is by using multiplicity, that is, an explicit statement. Request must have 1.. * items.
– Jonathan