how do objects interact with one another?give an example
Answers
Answered by
2
Answer:
An object's state is contained within its member variables and its behaviour is implemented through its methods. ... These objects interact with one another by sending each other messages. The result of a message is a method invocation which performs some action or modifies the state of the receiving object.
Answered by
4
Answer:
An object's state is contained within its member variables and its behaviour is implemented through its methods. ... These objects interact with one another by sending each other messages. The result of a message is a method invocation which performs some action or modifies the state of the receiving object.
Explanation:
hope it is helpful please follow add brain list
Similar questions