Design Patterns - Factory Method Pattern(blog.cumps.be)
submitted by
CumpsD(360) 3 years, 10 months ago
First of all, the definition: “Define an interface for creating an object, but let the subclasses decide which class to instantiate. The Factory method lets a class defer instantiation to subclasses.“ Illustrated by adding a building to our game, which creates various GameUnits for each faction.
|category: Patterns
|Views: 20
tags:
Factory Patterns another
Everyones tags:
Your Tags: