20.8. Order of Implementation

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

Figure 20.11. Possible order of class implementation and testing.

Get Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and the Unified Process, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.