Defining the Sale.makeLineItem Method - UML

As a final example, the makeLineltemmethod of class Sale can also be written by inspecting the enterltemcollaboration diagram. An abridged version of the interaction diagram, with the accompanying Java method, is shown in Figure,

Figure 20.6 Sale.makeLineItem method

Order of Implementation

Classes need to be implemented (and ideally, fully unit tested) from least - coupled to most - coupled. For example, possible first classes to implement are either Payment or ProductDescription; next are classes only dependent on the prior implementations - ProductCatalog or SalesLineltem.

Figure 20.7 Possible order of class implementation and testing


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

UML Topics