{"id":"decorator-degenerate-composite-one-child","text":"Decorator and Composite both use recursive composition through a common interface and can share a common parent class when combined — but Decorator holds a single reference to a Component and adds responsibilities dynamically, while Composite holds a collection of Components to represent part-whole hierarchies.","truth_value":"IN","source":"entries/2026/06/17/gof-oo-chunk-12.md","source_url":"","source_hash":"","justifications":[],"dependents":["decorator-structurally-identical-to-degenerate-composite"],"metadata":{"last_premise_reviewed":"2026-06-17T18:19:22","premise_review_result":"misread_source","repair_action":"rewritten"},"created_at":"2026-06-17T21:30:27+00:00","updated_at":"2026-06-17T22:52:58+00:00","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"decorator-degenerate-composite-one-child","truth_value":"IN","reason":"premise"}]}}