Factory method pattern: Difference between revisions

Content deleted Content added
No edit summary
Line 69:
}
 
In this case, Field is the creator, Control is the product, createControl() is the factory method, TextField and BooleanField subclasses of the creator and TextBox and CheckBox are subclasses of product.
 
==Common usage==