A factory method is a static method that creates objects;
A factory can take care of object creation;
A factory can be external or reside inside the object as an inner class;
Hierarchies of factories can be used to create related objects.
A factory method is a static method that creates objects;
A factory can take care of object creation;
A factory can be external or reside inside the object as an inner class;
Hierarchies of factories can be used to create related objects.