Software Engineering KB

Home

❯

05 Software Design and Architecture

❯

01 Design Patterns

❯

01 Concept

❯

Template Method

Template Method

Feb 10, 20261 min read

  • design-patterns
  • behavioral
  • template-method

Template Method

← Back to Behavioral Patterns

Define algorithm skeleton, let subclasses fill steps. Define the skeleton of an algorithm in a method, deferring some steps to subclasses. Subclasses can redefine certain steps of an algorithm without changing the algorithm’s structure.

Key Properties

  • Algorithm Skeleton
  • Hook Methods
  • Invariant Steps

Related

  • Strategy (delegation vs inheritance)
  • Factory Method (template method for creation)

design-patterns behavioral template-method


Graph View

  • Template Method
  • Key Properties
  • Related

Backlinks

  • Behavioral Patterns
  • Strategy

Created with Quartz v4.5.2 © 2026

  • GitHub