creational-evolution-inheritance-to-composition

Status: IN

Creational patterns exhibit a directional evolution from inheritance-based to composition-based mechanisms: Factory Method uses inheritance (subclasses decide which class to instantiate) while Abstract Factory uses object composition (delegates to factory objects), and the GoF identifies a typical trajectory where designs start with Factory Method and evolve toward the more flexible compositional patterns as requirements grow.

Justifications

Creational pattern evolution mirrors the broader GoF shift from inheritance to composition

Depends on (SL): factory-method-uses-inheritance-abstract-factory-uses-composition, creational-pattern-evolution-trajectory

Depended on by

JSON