Lab 9: UML Associations
Objective
To get experience with UML associations.
Task
For this lab, you will modify the UML class diagram I provided you with for assignment 2. The diagram is here:

If you are using Dia, you can download Item.dia to modify.
I gave you diagrams for the individual classes, but did not provide any associations between the classes.
For this lab, you should add associations to the diagram.
Details
In particular, you should note the following associations:
- That the Item class has-a instance of the ItemType enumeration.
- That the ItemGenerator class uses the ItemType enumeration.
- That the ItemGenerator class instantiates Item objects.
- That the Inventory class has a "has a" association with the Item class. You should indicate the multiplicity of this relationship as well.
- That the Main class instantiates the Inventory class.
So you should have 5 association lines in the diagram. Double-check that you have the arrows pointing the right way.
Adding this information to the diagram makes it more useful, as we can see how the various classes relate to one another.
Submitting
When you are done, please upload your UML diagram to Canvas.
If you are using Dia, you can upload either a .dia file, or a .png image. If you are using something else, please upload a .png