2. Abstract Factory Pattern
A. Definition
The Abstract Factory Pattern provides an interface for
creating families of related or dependent objects without
specifying their concrete classes.
B. Discription
Abstract Factory allows a client to use an abstract
interface to create a set of related products without knowing
about the concrete products that are actually produced. In
this way, the client is decoupled from any of the specifics of
the concrete products. Figure 4 shows how this all holds
together:
Figure 4. Abstract Factory Pattern Class Diagram
C. Explain Class Diagram
The AbstractFactory defines the interface that all
Concrete factories