Skip to content
Sharp

Design patterns · interview question

Why can using the Strategy Pattern in a simple system become a problem in production code?

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

Correct answer

B. Increased number of classes.

Why

One downside of the Strategy Pattern is that it can lead to an increased number of classes, which might be unnecessary for simple systems and could make the system more complex than needed.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →