jargon

Design patterns·Making things

you swap one object at startup and the whole family of things it creates changes together, consistently.

Abstract factory

Also calledkit, abstract factory pattern, factory of factories

An interface that creates a family of related products, with one implementation per family, so the products cannot be mismatched. The point is consistency across several types at once — a widget set where the scrollbar and the button must come from the same theme — rather than the single choice a factory method makes. It is heavily over-applied: with one family it is a class hierarchy that exists to hold one `new`.

Commonly confused with