When to use UML Association Classes?

Zabahey picture Zabahey · Jan 20, 2011 · Viewed 19.8k times · Source

Can I improve my design on these 2 diagrams below? If so, how?

I am confused by the use of association classes in my diagrams. Should I use them?

Figure 1

class diagram 1


Figure 2

class diagram 2

Answer

Paws picture Paws · Feb 1, 2012

An association class is used to capture certain characteristics of an association between two classes. These characteristics do not belong to the classes being associated but instead belong to the relationship between the classes.