[Previous] [Next]
The roles and functions of the elements of the Object Factory design pattern are as follows:
- Product The interface expected by the client
- ConcreteProduct The concrete class that implements the Product interface
- Factory The interface that defines a method for creating instances of concrete classes that support the Product interface
- ConcreteFactory The concrete class that implements the Factory interface and provides the functionality to create instances of a corresponding ConcreteProduct class