Exploring Design Patterns: A Journey through Factory Methods
What? Factory Method is a creational design pattern that provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created. A factory is a creational design pattern that delegates object creation to a separate method or class, instead of calling a constructor directly with … Read full article: Exploring Design Patterns: A Journey through Factory Methods