Mid
From PDF
GoF Patterns
Gang of Four Patterns
Increased Number of Objects:?
Short answer: For each algorithm, you need a separate class.
Explain a bit more
This could lead to an increase in the number of classes in your application, which might not be desirable in simpler systems.
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png