What is the point in using this pattern? Considering this article it's just senseless: https://refactoring.guru/design-patterns/factory-method
Why not to use simple inheritance? Here's a little comparison: https://codesandbox.io/s/factory-method-pattern-vs-good-old-inheritance-opovv?file=/src/inheritance.ts
Aucun commentaire:
Enregistrer un commentaire