1
Design Patterns In Java
Bob Tarr
Factory Patterns: Factory Method and Abstract Factory
Bob Tarr
Design Patterns In Java
Factory Patterns
2 2
Factory Patterns Factory Patterns
G Factory patterns are examples of creational patterns G Creational patterns abstract the object instantiation process.
They hide how objects are created and help make the overall system independent of how its objects are created and composed.
G Class creational patterns focus on the use of inheritance to decide
the object to be instantiated
³ Factory Method
G Object creational patterns focus on the delegation of the
instantiation to another object
³ Abstract Factory