I want a character that… — change these and watch what each approach costs
moves by
attacks with
defense
armor tier
+ armor tier (×3) off
Inheritance is-a
One class per combination. Want a new mix of abilities? You write a whole new subclass. Here's every class you'd need — the highlighted one is your current pick:
18 subclasses to write & maintain
Every option you add multiplies this list.
Composition has-a
One Character that holds swappable parts. Want a new mix? Snap in a different part — no new class:
1 Character class — 8 small reusable parts
hero : Character one object
parts bin — reuse these freely
A new option just adds one part — no multiplying.
console