Classes and Objects
- slide 3 : 29
Clients and Servers
In a dice game the objects act, in turn, as
client
and
servers
.
Client and servers
The
Game
object is a client of a number of
Die
objects
A given
Die
object is a client of a
Random
object
In turn, a
Die
object act as a server for the
Game
object, and
Random
objects act as servers for
Die
objects