🎴 Flashcard Mode
Design Patterns and Best Practices
Card1 / 15
Mastered0
Review0
QuestionClick to flip
Which design pattern is used to define a family of algorithms, encapsulate each one, and make them interchangeable?
AnswerClick to flip back
A
Strategy
💡 Explanation:
The Strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. This lets the algorithm vary independently from clients that use it.