flâneur — a map of the web's best reading

Abstract Factory

refactoring.guru · 2,041 words · saved by 1 readers

Abstract Factory is a creational design pattern that lets you produce families of related objects without specifying their concrete classes.

/ Design Patterns / Creational Patterns Abstract Factory Intent Abstract Factory is a creational design pattern that lets you produce families of related objects without specifying their concrete classes. Problem Imagine that you’re creating a furniture shop simulator. Your code consists of classes that represent: A family of related products, say: Chair + Sofa + CoffeeTable . Several variants of this family. For example, products Chair + Sofa + CoffeeTable are available in these variants: Modern , Victorian , ArtDeco . Product families and their variants. You need a way to create individual f

Explore this link on the map →

saved by

related reading