Skip to content
rewind927 edited this page Jan 22, 2015 · 5 revisions

Intent:

Defines the program skeleton of an algorithm in a method, called template method, which defers some steps to subclasses.
It lets one redefine certain steps of an algorithm without changing the algorithm's structure.

Structure:

Example:

StarBuzz

Use Template method Pattern:

Question:

  1. What difference between template method pattern and strategy pattern?

Reference:

http://en.wikipedia.org/wiki/Template_method_pattern

Clone this wiki locally