Creational Patterns Flashcards
What is the purpose of the ‘Abstract Factory’ pattern?
provides an interface for creating families of related objects without specifying their concrete classes.
What is the purpose of the ‘Builder’ pattern?
schermt de constructie van een complex object af. Daardoor kun je met hetzelfde proces verschillende varianten van het complexe object construeren.
What is the purpose of the ‘Factory Method’ pattern?
defines an interface for creating an object, but let subclasses decide which class to instantiate.
What is the purpose of the ‘Singleton’ pattern?
garandeert dat een klasse slechts 1 instantie heeft, en biedt een globaal toegangspunt ernaartoe.
What is the ‘Simple Factory’ pattern?
is a commonly used simplified means of delegating the instantiation of objects to a specific class (the ‘factory’).