September 2002
Intermediate to advanced
608 pages
14h 20m
English
Now that we're finally done with Team, we can move on to the Game class. The Game class represents the result of a game played between two teams. The Game class simply consists of four properties that describe a game (see Table 2.3).
Game stores the full name (City + Name) of each team, but for convenience, a partial name can be passed. As long as the name passed is enough to uniquely identify a team, the correct team will be looked up and stored.
| Property Name | Type | Get/Set? | Comment |
|---|---|---|---|
| home | String | Y/Y | fullName of team |
| score | int[] | Y/Y | visitor score, home score |
| visitor | String | Y/Y | fullName of team |
| week | int | Y/Y | week during season |
Methods of the Game class, other than the property accessors, ...
Read now
Unlock full access