Creational Flashcards
1
Q
Factory Method
A
Provides an interface for creating objects in a superclass. allows subclasses to alter the type of objects that will be created.
2
Q
Abstract Factory
A
Lets you produce families of related objects without specifying their concrete classes.
3
Q
Builder
A
Lets you construct complex objects step by step. The pattern allows you to produce different types and representations of an object using the same construction code.
4
Q
Prototype
A
Lets you copy existing objects without making your code dependent on their classes.
5
Q
Singleton
A
Lets you ensure that a class has only one instance, while providing a global access point to this instance.