Skip to content
Sharp

Design patterns · interview question

In terms of software design, what key principle does the Strategy Pattern support?

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

Correct answer

A. Open/Closed Principle

Why

The Strategy Pattern supports the Open/Closed Principle by allowing new strategies to be added without changing existing code, enhancing flexibility and maintainability.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →