15.2. Example Collaboration Diagram: makePayment

The collaboration diagram shown in Figure 15.3 is read as follows:

1.
The message makePayment is sent to an instance of a Register. The sender is not identified.
2.
The Register instance sends the makePayment message to a Sale instance.
3.
The Sale instance creates an instance of a Payment.
Figure 15.3. Collaboration diagram.

Get Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and the Unified Process, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.