1.

How is message passing done in OOP? Explain briefly.

Answer»

Message passing is nothing but sending and receiving of information by the objects, similar to people exchanging information. In OOPs, message passing involves specifying the name of objects, the name of the function, and the information to be sent.
 

The following are the basic steps in message passing.

  • Creating classes that define objects and their behaviour.
  • Creating objects from class definitions.
  • Establishing communication among objects.


Discussion

No Comment Found