Skip to content
Sharp

Design patterns · interview question

In which scenario would the Factory Pattern be inappropriate?

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

Correct answer

C. When the object creation logic is simple and unlikely to change

Why

The Factory Pattern is unnecessary when the object creation logic is simple and unlikely to change. In such cases, the added abstraction can introduce unnecessary complexity.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →