Abstract Factories for Families of Objects
To answer the challenges in Chapter 16, you designed a pair of classes to implement the CreditCheck interface. Your design isolates other developers from knowing whether the credit agency is up and running. Suppose that in supporting the verification of customer information, you add a couple of classes that check the status of a customer's billing and shipping addresses. Your package of checking services looks like Figure 17.1.
Figure 17.1. Classes in this package check a customer's credit, shipping address, and billing address.
Now suppose that a requirements analyst tells you that Oozinoz wants to start ...
Get Design Patterns Java™ Workbook 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.