Questions Tagged [factory-method]

Factory Method is a creational design pattern published by the Gang of Four. Its intent is to, "Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses." (page 107) Note that [abstract-factory] is a separate GoF pattern, and there are additional [factory] patterns outside the GoF.

Question is empty. Ask new Question

Popular Questions