A Gang of Four behavioral design pattern that defines the overall skeleton of an algorithm in a base class while letting subclasses override specific steps of that algorithm without changing its overall structure.
Facts
Core PrincipleA superclass method defines the skeleton of an operation in high-level steps, and subclasses fill in the variant parts. 1 Connections
Associated With
Erich Gamma, Pioneers Erich Gamma co-authored the 1994 Design Patterns book that named and catalogued the Template Method pattern among the original 23.
In Field
Sources
1. Template method pattern, Wikipedia
IntroductionQuote, Introduction
the template method is a method in a superclass, usually an abstract superclass, and defines the skeleton of an operation in terms of a number of high-level steps.
View the Source Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.