Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Concept

Template Method Pattern

Technique

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 Principle
A 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
Quote, 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
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.