Problem Statement
Which behavioral pattern enables selecting an algorithm's behavior at runtime?
Explanation
The Strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. It lets the algorithm vary independently from the clients that use it.
Practice Sets
This question appears in the following practice sets: