The factory method pattern specifies how an object can defer creation of some internal data and leave the actual task of creation for the derived class. It is part of the original Gang of Four book.
By implementing this approach, you can be flexible and select the appropriate cookie shape for the occasion. Output from the factory method therefore changes the final result.
The functionality of this pattern, as described in the original Design Patterns publication, looks very similar ...