O'Reilly logo

Design Patterns Java™ Workbook by Steven John Metsker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required