Info

r *

farmer sends a ^ message to GUI

Figure 6-7. Object farmer sends a message to object GUI.

In some cases, an object can send a message to itself; these messages are referred to as reflexive messages. The sender and the receiver of the message, in this case, is the same object. Figure 6-8 shows an example of a reflexive message; object GUI sends to itself the message displayResults.

GUI: GUI

1: displayResults

Figure 6-8. Example of a reflexive message.

0 0

Post a comment