Aggregation is a relationship between two classes that is best described as a "has-a" and "whole/part" relationship.
I have two doubts related to aggregation. In a class diagram where a class A have an aggregation of class B:1) Which is the cardinality of the diamond side?2) Can be expressed that class B has access to A? (the content can see the container)Thank you.…
asked Mar 22 '17 by Alberto
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…
asked Mar 19 '17 by Alberto