Lecture overview -- Keyboard shortcut: 'u'  Previous page: The Die Class -- Keyboard shortcut: 'p'  Next page: Message Passing -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 3 : 29
Object-oriented Programming in C#
Classes and Objects
Clients and Servers

A client uses services (operations) of other object. A server provides services (operations) to other objects. The same object can both act as a client and a server.

In a dice game the objects act, in turn, as client and servers.

Interacting Game, Die, and Random objects. The Game object is a client of the Die objects, which in turn are clients of the Random objects.

  • 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

Read more about clients and servers in the text book version of this material.