Content deleted Content added
No edit summary |
Remove unnecessary point about games - see discussion. |
||
Line 74:
*Factory Methods are common in [[toolkit]]s and [[framework]]s where library code needs to create objects of types which may be subclassed by applications using the framework.
*Parallel class hierarchies often require objects from one hierarchy to be able to create appropriate objects from another.
<!-- I don't think this paragraph adds anything to the article, at least not in it's current form:
*Don't forget about games! What happens when you need more than one instance of an object drawn onto your game screen, but you don't know how many before runtime, Factory Methods for the win!
-->
==Other benefits and variants==
|