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
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.
In Group: Software Design Patterns, Lead
In object-oriented programming, the template method is one of the behavioral design patterns identified by Gamma et al. in the book Design Patterns.
View the SourceReader 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.