Skip to content
KenWang edited this page Mar 18, 2015 · 4 revisions

###Intent: Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a lcass defer instantiation to subclasses.

###Strueture:

###Example:

###Use Factory Method Pattern

###Reference: http://en.wikipedia.org/wiki/Factory_method_pattern

Clone this wiki locally