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]
![](/image/library/english/13744_20fig06.gif;380137)