Introduction to OOP Chapter 1: Thinking Object-Oriented : next previous audio real text

Elements of OOP - Messages

And principle number 2:

  1. Objects perform computation by making requests of each other through the passing of messages

Actions in OOP are produced in response to requests for actions, called messges. An instance may accept a message, and in return will perform an action and return a value.

To begin the process of sending the flowers, Chris gives a message to Fred. Fred in turn gives a message to the florist in Robins city, who gives another message to the driver, and so on.

Intro OOP, Chapter 1, Slide 18