One of the objects of object-oriented design is to divide responsibility to assign different objects. We recommend this method of dividing responsibilities because it is in line with the spirit of encapsulation and delegation. The founding pattern encapsulates the founding process of the object, so that the responsibility of the founding instance and the responsibility of the use of the instance are separated, and the creation of a special module is assigned, and the system is no longer dependent on the details of the object creation process.
Full text reading:
Java language simple factory founding mode introduction