dimanche 19 mars 2017

Aggregation vs association in some design pattern

In some class diagram of several design patterns, like decorator pattern for instance, I see an aggregation (between decorator-component) but, in the code, instead having a collection, there is a single variable declared of an interface type.

Why it is an aggregation instead of an association? Thank you very much

Aucun commentaire:

Enregistrer un commentaire