Java Reference
In-Depth Information
Abstract Factory (Chapter 17)
SOLUTION 17.1
Figure B.21 shows a solution to providing concrete com.oozinoz.check.canada classes
that implement the interfaces and abstract class in com.ooz-inoz.check . One subtlety is
that you need only one concrete class for offline credit checking, because at Oozinoz, offline
checking is the same for calls from the United States and Canada.
Figure B.21. The canada package provides a family of concrete classes that conduct
a variety of checks for Canadian calls.
Search WWH ::




Custom Search