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.
[View full size image]