SE450: The FACTORY METHOD Pattern [20/55] Previous pageContentsNext page

Context

  1. A type (the creator) creates objects of another type (the product).
  2. Subclasses of the creator type need to create different kinds of product objects.
  3. Clients do not need to know the exact type of product objects.

Previous pageContentsNext page