Java Reference
In-Depth Information
com.oozinoz.check.us . Each of these packages can contain a concrete version of
the factory class and classes to implement each of the interfaces in com.oozinoz.check .
CHALLENGE 17.1
Complete the diagram in Figure 17.3, which shows the classes in
com.oozinoz.check.canada and their relation to classes and interfaces in
com.oozinoz.check .
Figure 17.3. Show the classes in the canada package and their relationships to
classes in com.oozinoz.check .
The concrete factory classes for Canadian and U.S. calls are fairly simple. The classes return
the Canadian or U.S. versions of the check interfaces, with the exception that both concrete
factories return a CreditCheck-Offline object if the local credit agency is offline. As in
the previous chapter, the CheckFactory class has an isAgencyUp() method that tells
whether the credit agency is available.
Search WWH ::




Custom Search