Applied Design Patterns with Java
Creational :: Factory Method (107) {C ch 4}
Example - UML : StraightSeeding
Example - Java :: Patterns\Creational\Factory_Method
Pattern Concept: to provide a simple decision making class that returns one of several possible subclasses of an abstract base class, depending on the data. A single class acts as a 'traffic cop' and decides which subclass of a single hierarchy will be instantiated.
Use a Factory Method pattern when:
The example Java program is called 'StraightSeeding'.
The UML diagram is above, and the list of Java files is below:
Catalog