Link Details

Link 94512 thumbnail
User 247182 avatar

By CumpsD
via blog.cumps.be
Published: Jul 14 2008 / 07:09

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.
  • 10
  • 0
  • 1061
  • 312

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (0)