In OOP, objects don’t necessarily communicate with each other by passing messages. They communicate with each other in some way that allows them to specify what they want to be done, but leaves the implementation of that behavior to the receiving object. Another way is to call a (virtual) method in the receiving object.
AmAn KumAr
In OOP, objects don’t necessarily communicate with each other by passing messages. They communicate with each other in some way that allows them to specify what they want to be done, but leaves the implementation of that behavior to the receiving object. Another way is to call a (virtual) method in the receiving object.