Content deleted Content added
ru: |
|||
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.
*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==
|