Skip to main content
PreparationZone Logo
PreparationZone
Back to Fundamentals

Fundamentals · Hard · Free

Name three design patterns freshers should know and when to use them.

FresherFundamentalsOOP & Language Fundamentals
Model answer

Three patterns freshers should know

PatternProblemWhen
FactoryHide concrete class choiceMultiple payment providers
StrategySwap algorithms at runtimeShipping cost calculators
ObserverNotify many on state changeUI / event buses

Patterns are vocabulary for recurring designs—not goals by themselves.

Always add cost: patterns add classes—use when pain is real.