Jump to content

Template method pattern

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TakuyaMurata (talk | contribs) at 20:50, 3 January 2003. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Intent: Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. TemplateMethod lets subclasses redefine certain steps of an algorithm without changing the algorithms's structure. DesignPatterns, p. 325


http://rampages.onramp.net/~huston/dp/templateMethod.html

http://wiki.cs.uiuc.edu/PatternStories/TemplateMethodPattern


CategoryPattern | CategoryBehavioralPatterns