Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.17 KB

File metadata and controls

19 lines (14 loc) · 1.17 KB

Abstract Factory Pattern

Abstract Factory UML Diagram

GoF Definition: The Abstract Factory Design Pattern provides a way to encapsulate a group of individual factories that have a common theme without specifying their concrete classes.

In other words: A super factory that creates other factories, Factory of Factories.

Participants

  • AbstractFactory: declares an interface for operations that create abstract products
  • ConcreteFactory: implements the operations to create concrete product objects
  • AbstractProduct: declares an interface for a type of product object
  • Product: defines a product object to be created by the corresponding concrete factory. Implements the AbstractProduct interface
  • Client: uses interfaces declared by AbstractFactory and AbstractProduct classes

Sources