Multiple choice technology programming languages

ReuestProcessor is based on following design pattern?

  1. Command Design Pattern

  2. Template Method Design Pattern

  3. Prototype Design Pattern

  4. Singleton Design Pattern

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

RequestProcessor uses the Template Method design pattern. The process() method defines the skeleton of the request processing lifecycle (processPopulate, processValidate, processActionPerform, etc.), with each step being a separate method that can be overridden. This is classic Template Method pattern - define algorithm structure in base class, let subclasses override specific steps. Command pattern (Option A) is about encapsulating requests as objects.