Skip to content
Sharp

Design patterns · interview question

You are designing a system with multiple types of notifications (email, SMS, push). How can the Factory Pattern help in managing these types?

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

Correct answer

D. By providing a unified interface to create and manage various notification types.

Why

The Factory Pattern can provide a unified interface for creating different notification types, allowing for easy management and extension as new notification methods are added.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →