🎴 Flashcard Mode

Design Patterns

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 design pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. This allows the algorithm to be selected at runtime.

Change Mode