September 2011
Intermediate to advanced
434 pages
9h 32m
English
The Factory Method pattern encapsulates creational logic in subclasses, allowing them to infer their own implementations. Figure 6-2 shows the class diagram.
Figure 6-2. Factory Method pattern class diagram
This pattern has the following parts:
The pattern's benefits are as follows:
It also has this drawback:
The Factory Method pattern lets ...
Read now
Unlock full access