The Template method pattern cardTemplate method pattern

Template method pattern

Common

Rarity: Common

The most frequent rarity: most Wikipedia articles become Commons.

Rarity follows how well known the article is: its views on the French and English Wikipedia over a year, and the number of languages it exists in.

At a glance

Class
Notion
Domain
Science and technology
In collections
Nobody has pulled it yet.

What Wikipedia says

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

Excerpt from the Wikipedia article “Template method pattern”, under the CC BY-SA 4.0 license. Read the article on Wikipedia

Image: Giacomo Ritucci, CC BY-SA 3.0, via Wikimedia Commons.

Open free boosters and add Template method pattern to your collection.

Play for free

Related cards