Lecture overview -- Keyboard shortcut: 'u'  Previous page: Clients and Servers -- Keyboard shortcut: 'p'  Next page: Classes [Section] -- 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 4 : 29
Object-oriented Programming in C#
Classes and Objects
Message Passing

At the conceptual level, we often talk about message passing in between object. At the underlying, technical level this covers activation of operations - procedure or function calls - on objects.

As a metaphor, we pretend that objects communicate by means of message passing

Interacting Game, Die, and Random objects

  • Message passing

    • We often prefer to think of the interaction between objects as message passing.

    • The receiver of an object locates a procedure or a function which can answer the message - method lookup

    • A result may be sent back from the receiver to the sender of the message.

The result sent back is an integral part of the original message - not a new message in its own right.

Read more about message passing in the text book version of this material.