Skip to content
Sharp

Design patterns · interview question

Why might using the Strategy Pattern in a highly dynamic system still lead to complex code management?

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

Correct answer

B. Frequent changes to strategies can lead to many small, dispersed classes.

Why

In a highly dynamic system, frequent changes and additions of strategies can lead to the creation of numerous small classes, making it difficult to manage and understand the overall structure.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →