Home > Articles > Software Development & Management > UML

  • Print
  • + Share This
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.

  • + Share This
  • 🔖 Save To Your Account