composite-vs-decorator-different-intents

Status: IN

Composite and Decorator share recursive composition structure but have different intents: Composite focuses on treating many related objects uniformly as one, while Decorator focuses on adding responsibilities without subclassing.

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

Depended on by

JSON