Factory Method is referred as a creational design pattern which provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created . Also known as virtual constructors. Lets clear it with a small code.2 Haz 2021