Multiple choice

What really happens when a message is sent to an object?

  1. A method is called on that object

  2. A member variable is set for that object

  3. A text string is assigned to the object.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In object-oriented programming, sending a message to an object is the mechanism by which an operation is invoked. This results in the execution of a method defined within that object's class.