Factory Design Pattern
Why Factory Pattern Exists
When building applications, we often create objects based on some condition.
Example:
Payment type (UPI, Credit Card, NetBanking)
Notification type (Email, SMS)
Vehicle t
design-pattern.hashnode.dev4 min read