oscarludick / method-factory-pttrn-ts Goto Github PK
View Code? Open in Web Editor NEWA 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.
Home Page: https://stackblitz.com/edit/method-factory-pttrn-ts