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;
28 Cards in this Set
- Front
- Back
- 3rd side (hint)
Which are the three main categories of design patterns?
|
There are three basic classifications of patterns Creational, Structural, and Behavioral patterns.
|
|
|
List Creational Patterns
|
Abstract Factory
Builder Factory Method Prototype Singleton |
The best way to remember Creational pattern is by remembering ABFPS (Abraham Became First President of States).
Structural Patterns |
|
Describe Abstract Factory
|
Creates an instance of several families of classes
|
|
|
Describe Builder
|
Separates object construction from its representation
|
|
|
Describe Factory Method
|
Creates an instance of several derived classes
|
|
|
Describe Prototype
|
A fully initialized instance to be copied or cloned
|
|
|
Describe Singleton
|
A class in which only a single instance can exist
|
|
|
List Structural Patterns
|
Adapter
Bridge Composite Decorator Facade Flyweight Proxy |
To remember structural pattern best is (ABCDFFP)
Behavioral Patterns |
|
Describe Adapter
|
Match interfaces of different classes.
|
|
|
Describe Bridge
|
Separates an object’s abstraction from its implementation
|
|
|
Describe Composite
|
A tree structure of simple and composite objects.
|
|
|
Describe Decorator
|
Add responsibilities to objects dynamically.
|
|
|
Describe Facade
|
A single class that represents an entire subsystem.
|
|
|
Describe Flyweight
|
A fine-grained instance used for efficient sharing.
|
|
|
Describe Proxy
|
An object representing another object.
|
|
|
List Behavioral Patterns
|
Mediator
Memento Interpreter Iterator Chain of Resp Command State Strategy Template Method Visitor |
Just remember Music....... 2 MICS On TV (MMIICCSSOTV).
|
|
Describe Mediator
|
Defines simplified communication between classes.
|
|
|
Describe Memento
|
Capture and restore an object's internal state.
|
|
|
Describe Interpreter
|
A way to include language elements in a program.
|
|
|
Describe Iterator
|
Sequentially access the elements of a collection.
|
|
|
Describe Chain of Resp
|
A way of passing a request between a chain of objects.
|
|
|
Describe Command
|
Encapsulate a command request as an object.
|
|
|
Describe State
|
Alter an object's behavior when its state changes.
|
|
|
Describe Strategy
|
Encapsulates an algorithm inside a class.
|
|
|
Describe Observer
|
A way of notifying change to a number of classes.
|
|
|
Describe Observer
|
A way of notifying change to a number of classes.
|
|
|
Describe Template Method
|
Defer the exact steps of an algorithm to a subclass.
|
|
|
Describe Visitor
|
Defines a new operation to a class without change.
|
|