Composition Over Inheritance

Use when designing or refactoring a class hierarchy, deciding between extending and wrapping a class, or reviewing subclasses that override methods to disable them. Not for implementing an interface, or for a framework's documented subclass hook.

morzecrew 67aaef4 2 files · 7.4 KB Updated

File contents

morzecrew/agent-skills/tree/main/skills/composition-over-inheritance commit 67aaef4e26

Frequently asked questions

npx skillmds@latest add morzecrew/composition-over-inheritance