Deck 1 Flashcards
Factory Method
Used to replace the class contractor, abstracting the process of object generation.
Abstract Factory
Create instance of several classes belonging to different families.
Builder
Separates an object construction from its representation
Prototype
Creates a duplicate object or clone of object
Singleton
Ensures that a class can only have one instance.
Adapter
Match interface of different classes
Bridge
Separates an objects abstraction from its implementation
Composite
used to create tree structures or the hierarchical, recursive tree structures of the set of related objects where any of the elements of the structure may be accessed and utilized in a specific manner.
Facade
A single class that represents an entire complex system
Flyweight
Minimize memory usage by sharing as much data as possible with similar objects
Proxy
Provides placeholder for underlying class or object
Chain of Responsibility
Passes a request among a list or chain of objects.
Command
Wraps a request under an object as a command and passed to the invoker object.
Interpreter
Implements an expression interface to interpret a particular context.
Iterator
Provides a way to access the elements of a collection object in a sequential manner without knowing its underlying structure.
Mediator
Allows multiple objects to communicate with each other without knowing each other’s structure.
Memento
Capture the current state of an object and store it in such a manner that it can be restored at a later time without breaking the rules of encapsulation.
Observer
Allows an object (subject) to publish changes to its state and other objects (observer) that depend upon that object are automatically notified of any changes to the subject’s state.
State
Alters the behavior of an object when its internal state changes.
Strategy
Allows a client to choose an algorithm from a family of algorithms at run-time and gives it a simple way to access it.
Visitor
Creates and performs new operations onto a set of objects without changing the object structure or classes.
Template
Defines the basic steps of an algorithm and allows the implementation of the individual steps to be changed.