Prev
1
2
3
4
5
6
7
8
9
Next
- Abstract Factory Pattern
- Declare abstract interfaces to a family of objects and an interface to a factory to create them.
- A concrete factory implements the factory interface and creates a family of concrete objects, each implementing the product interfaces.
- Decouple, dynamic, flexible
- Java Collections API is an example: Collection interface dictates an implementation must produce an object which implements Iterator.
- Simplified example