Skip to content
Sharp

Design patterns · interview question

How would you explain a potential disadvantage of using the Factory Pattern in a system with a small number of product types in an interview?

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

Correct answer

A. It can introduce unnecessary complexity.

Why

In systems with only a few product types, using the Factory Pattern can introduce unnecessary complexity without providing significant benefits. The added abstraction might not justify the overhead.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →