Design Pattern: Abstract Factory Pattern in Python

Abstract factory pattern works as a logical group for the Factory pattern. Abstract factory is used to generate multiple types of factories, and those factories are used to generate the desired item objects. In this article, we discuss the implementation of the Abstract Factory Pattern in Python.

Design Pattern: Abstract Factory Pattern in PHP

Abstract factory pattern is used when we need multiple factories which produce related but different sets of objects. This pattern is generally used in relatively larger applications that deal with lots of classes of related classes but can be divided into multiple groups based on some criteria. This article discusses the Abstract Factory pattern implementations in PHP.

Design Pattern: Abstract Factory Pattern

Using the Factory pattern we generate objects based on some criteria. In Abstract factory pattern, we use multiple factory pattern implementations and generate objects based on that. Abstract factory pattern is also called Factory of Factory, so before reading about Abstract factory pattern, take a look at the Factory pattern.