← Back to Design Principles

Factory

Design Principles

The Question

What is the Factory pattern and when would you use it?

What a Strong Answer Covers

  • decouples creation
  • "returns subclass based on input

Related Questions

  • Singleton
  • Strategy
  • Observer
  • IoC / Dependency Injection
  • High Cohesion / Loose Coupling

Practice This Question

Get AI-graded feedback on your answer with follow-up probes on weak points.

Take the Free Assessment
GrindQuestionsAITechnical interview assessment
TermsPrivacyAbout