Defer the exact steps of an algorithm to a subclass
  • Define the skeleton of an algorithm in an operation, deferring some steps to subclasses.

  • Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.

Template Method Design Pattern