TechnologyZer
technologyzer.com

Abstract Factory Design Pattern

In the Abstract Factory pattern, there are typically two levels of abstraction:

  1. Abstract Factory: This is an interface or an abstract class that declares a set of methods for creating abstract products. Each method corresponds to a different kind of product family. Concrete implementations of the abstract factory provide specific implementations for creating concrete products.
  2. Abstract Products: These are interfaces or abstract classes that declare a set of methods that concrete products must implement. Each abstract product represents a different kind of product in the family.

Factory Design pattern creates concrete class objects.
Abstract Factory Design Pattern creates factories that creates concrete class object.

Leave a Comment