Factory method
It provides an interface for creating objects in a superclass dynamically, while allowing subclasses to customize the creation process.
It provides an interface for creating objects in a superclass dynamically, while allowing subclasses to customize the creation process.