How do objects interact with each other in object-oriented programming?
2021
How do objects interact with each other in object-oriented programming?
- A.
By ringing
- B.
By text
- C.
By sending message
- D.
By transmitting signal
Attempted by 233 students.
Show answer & explanation
Correct answer: C
In Object-Oriented Programming (OOP), objects interact with each other through message passing. One object sends a message to another object by calling its methods or requesting services.
This communication mechanism allows objects to work together while maintaining encapsulation and modularity.