Factory Method Design Pattern in Java

The primary purpose of the Factory Method Design Pattern is to provide an interface for an application while deferring until runtime the creation of a concrete subclass (based upon that interface) using a factory method. The Factory Method Design Pattern is a creational pattern. Read more.