How do objects interact with each other in object-oriented programming?

2021

How do objects interact with each other in object-oriented programming?

  1. A.

    By ringing

  2. B.

    By text

  3. C.

    By sending message

  4. 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.

Explore the full course: Up Lt Grade Assistant Teacher 2025