Connect with me
Creational Design Pattern: Factory
The Factory pattern is the second most commonly used design pattern. It is based on the idea that we can create objects of a common super type, while allowing their actual implementations to differ in subsequent subclasses.