Factory method pattern: Difference between revisions

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