Introduction to OOP: Chapter 4: Messages, Instances, and Initialization: [next] [previous] [audio] [real] [text]

Message Passing Syntax

Two major forms - receiver, then either period or space, then arguments:


aCard.flip(); // C++ or Java or Object Pascal

aCard.includes(a, b); 

aCard flip. " Smalltalk  or Objective-C "

aCard includes: a and: b.
Intro OOP, Chapter 4, Slide 8