Skip to content
Sharp

Design patterns · interview question

Which aspect of the Factory Pattern helps in reducing tight coupling between classes?

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

Correct answer

D. It uses interfaces or abstract classes for object creation.

Why

By using interfaces or abstract classes for object creation, the Factory Pattern reduces tight coupling as client code can interact with abstract types without knowing the concrete classes.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →