Multiple choice technology architecture

Define the skelton of an algorithm in an operation, deferring some steps to subclasses. It lets subclasses redefine certain steps of an algorithm without changing the algorithm structure.

  1. Chain of responsibility

  2. Template method

  3. Interpreter

  4. Mediator

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The Template Method pattern defines the skeleton of an algorithm in a base class, allowing subclasses to override specific steps without changing the overall structure. This promotes code reuse and ensures the algorithm's invariant steps remain consistent while enabling customization of variable steps. Chain of Responsibility handles request passing through a chain, Interpreter interprets grammar, and Mediator centralizes communication between objects.