Lecture 12 Part 2: Factories and Superclasses as Service Providers
September 19, 2012Ambient temperature: 73.2oF Concepts Systems with prototypes do not care where the prototypes come from, so long as they have one. Have a “IPrototypeShapeFactory” hierarchy that can produce the prototype (size ~ 1.0 units) of any kind of shape, when you need it. Polygon and Image factories cannot store a unit-sized prototype; they will instead […]