A factory method handles object creation and encapsulates it in subclass. This decouples the client code in the superclass from the object creation code in the subclass.
-
Updated
Jan 15, 2021 - TypeScript
A factory method handles object creation and encapsulates it in subclass. This decouples the client code in the superclass from the object creation code in the subclass.
Add a description, image, and links to the method-factory topic page so that developers can more easily learn about it.
To associate your repository with the method-factory topic, visit your repo's landing page and select "manage topics."