The factory (or factory method) design pattern specializes in delegation and encapsulation. This pattern allows a superclass to defer instantiation to subclasses. This is because the class that contains the primary factory method pattern is abstract.
from MUO - Feed https://ift.tt/pjPWD8y
via IFTTT