Reputation: 151
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
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