Object-Oriented Programming (OOP)
What is the function or purpose of Message passing?
- A. The process by which objects communicate with one another by invoking each other's methods. ✓
- B. The practice of restricting direct access to an object's internal data to protect it from unintended interference.
- C. A variable defined in a class for which each object of that class maintains its own separate copy.
- D. A relationship between two separate classes that establishes a connection through their objects.
Correct answer
A. The process by which objects communicate with one another by invoking each other's methods.
Explanation
Message passing refers to the process by which objects communicate with one another by invoking each other's methods.