Next: UML summary
Up: Introduction to OO concepts
Previous: Abstraction with objects
Contents
- Objects communicate by sending messages.
- Messages convey some form of information.
- An object requests another object to carry out an activity by sending it a message.
- Most messages pass arguments back and forth.
- Meilir Page-Jones defines three types of messages[12]:
- Informative - send information for the object to update itself.
- Interrogative - ask an object to reveal some information about itself
- Imperative - take some action on itself, or another object
- Grady Booch defines four types of messages[4]:
- Synchronous - receiving object starts only when it receives a message from a sender, and it is ready.
- Balking - sending object gives up on the message if the receiving object is not ready to accept it.
- Timeout - sending object waits only for a certain time period for the receiving object to be ready to accept the message.
- Asynchronous - sender can send a message to a receiver regardless of whether the receiver is ready to receive it.
Next: UML summary
Up: Introduction to OO concepts
Previous: Abstraction with objects
Contents