user3629119
user3629119

Reputation: 151

What is preferred composition or aggregation in UML?

I am synthesizing all the UML patterns -

Like Adaptor Pattern, Commander Pattern, Wrapper Pattern.

My question is what is preferred composition or aggregation. Also, why is it preferred so ?

Upvotes: 0

Views: 132

Answers (1)

Vladimir
Vladimir

Reputation: 2119

It is impossible to prefer some of kind of association. Both, composition or aggregation are used in specific situations in model. I recommend you to read UML Specification. Find info about association end, association and property element. Here is UML web site

Upvotes: 1

Related Questions