Apply Template Method Pattern

Use when multiple classes share the same algorithm skeleton but differ in specific steps — defining the invariant structure once in a base class and letting subclasses override only the varying parts.

jeffreytse Updated
grimoire

File contents

jeffreytse/grimoire-core commit e4bbae8acd

Frequently asked questions

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