Part 03: Factory Method
Factory method is a creational design pattern, it helps to create objects as per client's needs. This can be done by using a constructor function with the new keyword but there are situations when we have different types of objects and to reduce comp...
omamazainab.hashnode.dev3 min read