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

Which behavioral design pattern enables selecting an algorithm’s implementation dynamically at runtime from a family of interchangeable algorithms?

AState Pattern
BCommand Pattern
CMediator Pattern
DStrategy Pattern

Explanation

The Strategy pattern encapsulates alternative algorithms inside separate classes and makes them interchangeable at runtime.

Submitted by: mcqstutor Team More Software Engineering MCQs →

No Comments

Leave a comment

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