Apply Factory Method Pattern

Use when a class must create objects but should not be responsible for deciding which concrete class to instantiate — letting subclasses or configuration determine the type at runtime.

jeffreytse Updated
grimoire

File contents

jeffreytse/grimoire-core commit f4acbef433

Frequently asked questions

npx get-skill add jeffreytse/apply-factory-method-pattern