Applying UML and Patterns: An Introduction to ObjectOriented Analysis and Design and Iterative Development, Third Edition [Electronic resources]

Craig Larman

نسخه متنی -صفحه : 472/ 261
نمايش فراداده

20.7. Defining the Sale.makeLineItem Method

As a final example, the

makeLineItem method of class

Sale can also be written by inspecting the

enterItem collaboration diagram. An abridged version of the interaction diagram, with the accompanying Java method, is shown in Figure 20.6.

Figure 20.6. Sale.makeLineItem method.

[View full size image]