March 2002
Intermediate to advanced
496 pages
8h 51m
English
The FACTORY METHOD pattern often appears when you use parallel hierarchies to model a problem domain. A parallel hierarchy is a pair of class hierarchies in which each class in one hierarchy has a corresponding class in the other hierarchy. Parallel hierarchies usually emerge when you decide to move a subset of behavior out of an existing hierarchy.
Consider the construction of aerial shells, as illustrated in Chapter 5, Composite. To build these shells, Oozinoz uses the machines modeled in Figure 16.2.

Read now
Unlock full access