Factory-Method

Factory Method

Fifty lines of spawn code and one new Wolf() in the middle. Learn how Factory Method lets the parent keep the steps while each subclass picks the class, and how it differs from its look-alikes.

November 25, 20269 minutes