Factory Pattern: Design Patterns
One of the most trusted and widely used Creational Design Pattern is the Factory pattern. It helps to solve the problem of having tight coupling with the client code by encapsulating the object creation logic in itself. This might sound confusing so let’s break this to simpler words. We usually have some architecture where we…