
10-152-311 - Object-Oriented Programming 1
5.2 Zoo Lab Sequence Diagram: Overview
- Create a UML sequence diagram in Violet following these specifications:
- The MainWindow has a method findFredAgeButton_Click().
- The MainWindow has a nested object, comoZoo (Zoo).
- The button click method calls comoZoo.FindGuest(). It takes a parameter of name (string). It returns a Guest which will be stored in a fred variable.
- comoZoo's FindGuest() method interacts with a nested object g (Guest).
- comoZoo's FindGuest() method gets the value of the Name (string) property from the nested g object.
- The button click method gets the Age (int) property of the fred (Guest) object.
- Using Violet, export the diagram to a .png file (File, Export to | Image file).
- Submit the file via Blackboard.