factory-method-uses-inheritance-abstract-factory-uses-composition

Status: IN

Factory Method uses inheritance (subclasses decide which class to instantiate) while Abstract Factory uses object composition (an interface for creating families of related objects).

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

Depended on by

JSON