Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
27 Cards in this Set
- Front
- Back
Abstract factory |
Creates an instance of several famalies of objects. Factory for factories |
|
Builder |
Seperates object construction from its representation |
|
Simple factory |
Allows for the creation of objects without a constructor instead with conditionals |
|
Object pool |
Avoid expensive acquisition and release of resources by recycling objects no longer in use |
|
Singleton |
A class of where only one instance can exist |
|
Adapter |
Allows objects with incompatible interfaces to collaberate |
|
Bridge |
Seperates an objects interface from its implementation Seperates classes |
|
Composite |
Creates a tree structure that allows for each node to perform an unique task |
|
Decorator |
Add responsibilities to objects dynamically sorta like adding layers to an onion |
|
Facade |
Creates an interface that masks complex underlying code |
|
Flyweight |
when one instance of a class can play many different roles to save memory
|
|
Prototype |
pattern allows you to copy existing objects without making you code Dependent on other classes |
|
Proxy |
Object representing another object |
|
Chain of responsibility |
Avoids coupling a sender and receiver by letting more than one object handle the request |
|
Command |
When an object is created to encapsulates all the information needed to perform an action of another class |
|
Interpreter |
defines a grammatical representation for a language and provides an interpreter to deal with this grammar |
|
Iterator |
Sequentially accesses the elements of a collection |
|
Mediator |
Forces objects to communicate via a mediator object |
|
Memento |
Capture and restore an objects internal state |
|
Null object |
The default value of an object, allows for you to leaving objects undefined
|
|
Observer |
An object that notifies changes to another object |
|
State |
Allows for an object to change its behavior when its internal state has changed |
|
Strategy |
defines a family of algorithms and encapsulates each one allowing for them to be interchangable |
|
Template method |
Creating an algorithm but lets subclasses decide how to implement it. Customizing an algorithm for a specific problem |
|
Visitor |
Seperates algorithms from the objects they operate on |
|
Factory method |
Provides an interface for creating a class but lets subclasses decide which classes to instantiate |
|
Acronym |
NOPBS Stoic mics mvp abcdff 3 factories |