creational-patterns-enable-composition-reuse

Status: IN

Creational patterns — with Factory Method as the most pervasive creational mechanism in the GoF catalog — complement composition-based reuse: composition's superiority over inheritance for flexibility benefits from the ability to vary the concrete objects in a composition, and Factory Method provides a foundational way to abstract object creation, reducing direct dependence on concrete constructors.

Justifications

Composition cannot be flexible without creational abstraction; Factory Method provides that abstraction

Depends on (SL): factory-method-as-foundational-creational, composition-superiority-for-reuse

Depended on by

JSON