Here are the whiteboard sketches from class discussion about moving
responsibilities from the main
method to the
Simulation
class.
The first sketch provides the motivation for moving code out of
main
:
Object diagram before Lab 4 (main, Aquarium, user interface, and 3 fish):
Object diagram after introduction of Simulation class: