Here I am with another question about aggregation and association. I wanted to learn some of the basics of UML, so I started reading Martin Fowler's “UML Distilled”. I read both chapters about classes, and there is one thing that I cannot fully understand, I think, is aggregation versus association. The book has this quote:
In the days before UML, people were usually pretty vague about what aggregation is and what association is. Regardless of whether they were vague or not, they were always incompatible with everyone else. As a result, many model designers believe aggregation is important, albeit for various reasons. Thus, UML includes aggregation (Figure 5.3), but with little or no semantics. As Jim Rambo says, “think of it as a placebo for modeling” [Rumbaugh, UML Reference].
As I understand from this quote and the ones that I read when the stack overflows, it doesn’t matter which of these two relationships I use, they mean basically the same thing, or is there a situation where using aggregation instead of association would be justified and / or I could not exchange one for another without changing the "value" of the class diagram?
I ask this because this book was written in 2003, and some things could change over the last few years.
aggregation associations uml
Andna Mar 09 2018-12-12T00: 00Z
source share