Preethika Spreethisblog.hashnode.dev·Jun 10, 2024Factory Method Design Pattern - Pros 'n' ConsPROS: 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...52 readsDevopsAdd a thoughtful commentNo comments yetBe the first to start the conversation.