Factory Method Design Pattern - Pros 'n' Cons
PROS:
Encapsulation: It encapsulate object creation logic, which helps reducing complex code and improves maintainability.
Decoupling: It decouples the client code from the specific classes being instantiated. Clients only need to know common inter...
preethisblog.hashnode.dev2 min read