
10-152-311 - Object-Oriented Programming 1
2.1 Zoo Lab Class Diagram: Overview
- Create a UML class diagram representing the the existing 1.2 Zoo source code (At this point, it should look very much like the UML class diagram below).
- Enhance the UML class diagram to include the following changes:
- Add a class "BirthingRoom" with a field "Temperature" of type "double".
- Create a field in the Zoo class named "B168" of type "BirthingRoom".
- Add a class "VendingMachine" with a field "MoneyBalance" of type "decimal".
- Create a field in the Zoo class named "AnimalSnackMachine" of type "VendingMachine".
- "Fold in" the LadiesRoom and MensRoom fields of the Zoo class and remove the Restroom class from the diagram.
- Remove the dependency reference from the MainWindow class to the Zoo class, replacing it with a 1-to-1 association reference named ComoZoo.
1.2 Zoo Class Diagram
