Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. The factory
method pattern is an object-oriented design pattern to implement the
concept of factories. Like other creational patterns, it deals with the
problem of creating objects (products) without specifying the exact
class of object that will be created. The factory method design pattern
handles this problem by defining a separate method for creating the
objects, which subclasses can then override to specify the derived type
of product that will be created. Outside the scope of design patterns,
the term factory method can also refer to a method of a factory whose
main purpose is creation of objects.