10-152-311 - Object-Oriented Programming 1

2.1 Zoo Lab Class Diagram: Overview

  1. 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).
  2. Enhance the UML class diagram to include the following changes:
    1. Add a class "BirthingRoom" with a field "Temperature" of type "double".
    2. Create a field in the Zoo class named "B168" of type "BirthingRoom".
    3. Add a class "VendingMachine" with a field "MoneyBalance" of type "decimal".
    4. Create a field in the Zoo class named "AnimalSnackMachine" of type "VendingMachine".
    5. "Fold in" the LadiesRoom and MensRoom fields of the Zoo class and remove the Restroom class from the diagram.
    6. 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

PNG image of 1.2 Zoo UML class diagram