Explain it in 60 seconds
The strategy pattern
Backend Engineering · OOP and Design Patterns · Beginner
What is the strategy pattern?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Family of interchangeable algorithms behind interface.
- Chosen at runtime.
- Replaces conditionals.
- e.g. shipping cost strategies.
- Supports open/closed.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.