What are messages? What is their use in OOP?
Answers
Answer:
❦ ᴍᴇssᴀɢᴇs ❦
The definition of a message is a short communication sent from one person to another or the central theme or idea of a communication. An example of a message is the important idea of world peace; people try to spread the idea - or message - of world peace. An example of a message is an email you receive in your inbox.
❦ ᴍᴇssᴀɢᴇs ᴜsᴇᴅ ɪɴ ᴏᴏᴘ ❦
OOP can also be used in manufacturing and design applications, as it allows people to reduce the effort involved. For instance, it can be used while designing blueprints and flowcharts. OOP makes it possible for the designers and engineers to produce these flowcharts and blueprints accurately.
Messaging is how work gets done in an OO system. Understanding messaging is a key part of being able to visualize how an OO program actually executes, and the relationship between the abstractions (objects) in an OO program. A message has four parts: identity of the recipient object...