Design Patterns

Patterns: Creational: Factory Method

Defines an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.

Allows programmers to request object and have the correct type created behind the scene and returned.

 

 

 

 

 

Subscribe to Design Patterns