Intermediate
Object-Oriented Programming Concepts
Q55 / 100
What is the purpose of the "Strategy" design pattern?
Correct! Well done.
Incorrect.
The correct answer is A) To encapsulate interchangeable algorithms or behaviors and select one at runtime
A
Correct Answer
To encapsulate interchangeable algorithms or behaviors and select one at runtime
Explanation
Strategy defines a family of algorithms behind a common interface, letting the client choose or swap implementations without changing its own code.
Progress
55/100