Skip to content
Sharp

Design patterns · interview question

How would you explain a sign that the Strategy Pattern is being misused in an application in an interview?

Multiple choiceMediumchapter-13-curatedpremiumdesign-patternsstrategy-pattern
Choose one answer
Answer and explanation

Correct answer

C. Strategies are defined but never used at runtime.

Why

Having strategies defined but never used at runtime indicates misuse, as the Strategy Pattern’s purpose is to switch strategies dynamically. This can lead to unnecessary complexity and wasted resources.

Test yourself on Design patterns

A free test with instant, explained results. No account needed.

Start free test
All Design patterns questions →