Abstract Factory
Usage
- Also known as: Kit
- Create an instance of several families of classes
- Provide an interface for creating families of related or dependent objects without specifying their concrete classes
Diagram
Participants
AbstractFactory
ConcreteFactory
- Declares an interface for operations that create abstract products
AbstractProduct
- Implements the operations to create concrete product objects
Product
- Declares an interface for a type of product object
Client
- Defines a product object to be created by the corresponding concrete factory
- Implements the AbstractProduct interface
- Uses interfaces declared by AbstractFactory and AbstractProduct classes
Resources URL:
notes/design_patterns/resources
Sources URL:
notes/design_patterns/sources
