1
edit
Changes
→Factory Pattern Design
:When using the concrete classes, the developer has to remember the class names. In factory pattern, choosing what type of object to be created is delegated to the factory class. Usually this is done by sending a parameter. Based on the parameter passed to the factory, the factory creates an instance of a certain type/class.
[[Image:factorypattern.gif|border|none|thumb|300px|Factory Method Pattern]]
<pre>