Abstract Factory Pattern
The Abstract Factory Pattern adds another layer of abstraction over the Factory Pattern. It has an Abstract Factory Interface which is implemented by several Factory classes. A Super Factory decides which Factory should be used based on the requirement. Abstract Factory Pattern is one the creational design patterns.
An interface which for creating AbstractProduct objects.
Implements AbstractFactory and creates ConcreteProduct objects.
An interface for type of products.
Implements AbstractProduct object. Here is where the actual product code is defined.
Uses methods provided by AbstractFactory and AbstractProduct interfaces to create objects.
As you can see in the diagram, There is an AbstractFactory interface which is implemented by 2 factory classes. Client doesn't access the concrete factory classes directly, instead uses the methods provided by AbstractFactory interface.