previous |
start |
next
Example: An Educational Game (UML Diagram)
- The collaborator columns of the CRC cards
indicate part of the relationship between class, but which are
dependencies and which are associations?
- Since the same player must be manipulated for
several rounds, you can't just construct local player
objects.
- The Game object must have a data field
of type Player and a have the play round function modify its
state.
- The Clock and Time classes to
not need to be associated with the Game class.
- The set time functions from the Clock
class suggests that the Time class is associated with the
Clock class.

previous |
start |
next