Methods and the UML Sequence Diagram
The UML overview in Chapter 1, "Object-Oriented Programming," introduced the practice of using sequence diagrams to depict method calls between objects, which can be thought of as message passing. Figure 4.1 shows a sequence diagram for a simplified scenario for withdrawing a sum of money from a bank account. Here, the actor in the system sends a message to the AccountController that then interacts with an Account and an AccountTransaction to satisfy the request.
Figure 4.1. A sequence diagram depicts method calls between objects.
In a formal design process, using an approach like this is precisely how the ...
Get Special Edition Using Java 2 Standard 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.