Home > Articles > Software Development & Management > UML

This chapter is from the book 20.7 Defining the Sale.makeLineItem Method

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.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.