Message Passing
An object-Orientcd program consists of a set of objects that communicate. with each other.The process of programming in an object-oriented language, therefore, involves the following basic steps:
1. Creating classes that. define objects and their behaviour,
2. Creating objocts from class definitions, and
3. Establishing communication among objets.
Objects communicate with one another by sending and receiving information much the same way as people pass messages to one another. The concept of message passing makes it easier to talk about building systems that directly model or simulate their real-world counterparts.
Comments
Post a Comment