Factory
A factory is a function or method that returns objects of a varying prototype or class from some method call, which is assumed to be new.
A factory is a function or method that returns objects of a varying prototype or class from some method call, which is assumed to be new.