Implementation Issues
Variant 1: Abstract Factory
Creating different families of objects.
Variant 2: Concrete Factory
Creating (a family of) objects.
Factory1 class acts as both
interface and implementation
(it abstracts and implements
object creation).
MazeFactory is not an abstract class; thus it
acts as both the
AbstractFactory and the
ConcreteFactory.
This is another common implementation for simple applications of
the Abstract Factory pattern."
[GoF, p94]
MazeFactory
is just a collection of
factory methods. This is the most common
way to implement
the Abstract Factory pattern."
[GoF, p94]