It suggests that you replace direct object construction calls (using the new operator) with calls to a special factory method.
now you can override the factory method in a subclass and change the class of products being created by the method
Feb 16, 20241 min read
It suggests that you replace direct object construction calls (using the new operator) with calls to a special factory method.
now you can override the factory method in a subclass and change the class of products being created by the method