Pakistan's best MCQs practice hub — FPSC · PPSC · CSS · NTS · Other Exams
Login

Which behavioral design pattern defines an algorithm’s skeleton in a base class, allowing subclasses to override specific steps without changing the overall structure?

AStrategy Pattern
BState Pattern
CTemplate Method Pattern
DChain of Responsibility Pattern

Explanation

Template Method sets up an algorithm framework in a method, delegating step implementations to subclasses.

Submitted by: mcqstutor Team More Software Engineering MCQs →

No Comments

Leave a comment

Your email address will not be published. Required fields are marked *