Applied Design Patterns with Java
Creational :: Abstract Factory (87) {C ch 5}
Example - UML : Gardener
Example - Java :: Patterns\Creational\Abstract_Factory
Pattern Concept: to provide an interface to create and return one of several families of related objects. The Abstract Factory pattern is one of level of abstraction higher than the Factory Method, and it returns one of several related classes of objects, each of which can return different objects.
The advantage of the Abstract Factory is that it allows adding new subclasses easily. It also isolates the concreate classes from each other, they need not know about each other.
The example Java program is called 'Gardener'.
The UML diagram is above, and the list of Java files is below:
Catalog