decorator-border-extends-parent-behavior

Status: IN

Border::Draw exemplifies extending rather than replacing parent behavior: it calls MonoGlyph::Draw(w) first to let the component draw itself, then calls DrawBorder(w) to add the border — this extension-not-replacement distinction is a key Decorator implementation technique.

Source: entries/2026/06/17/gof-oo-chunk-5.md

Depended on by

JSON