Shared Flashcard Set

Details

Design Patterns Set 1
Set of study cards intended to relate design patterns with their intents or UML digrams.
26
Computer Science
Undergraduate 3
03/02/2012

Additional Computer Science Flashcards

 


 

Cards

Term
Observer
Definition

Type: Behavioral

 

Purpose: Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified.

 

Term
State
Definition

Type: Behavioral

 

Purpose: Allow an object to alter its behavior when its internal state changes.

Term
Strategy
Definition

Type: Behavioral

 

Purpose: Define a family  of algorithms, ecapsulate each one and make them interchageable. Lets the algorithm vary independently from clients that use it.

Term
Iterator
Definition

Type: Behavioral

 

Purpose: Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.

Term
Adapter
Definition

Type: Structural

 

Purpose: Convert the interface of a class into another interface clients expect. Lets classes work together that couldn't otherwise because of incompatible interfaces.

Term
Abstract Factory
Definition

Type: Creational

 

Purpose: Provides an interface for creating families of related or dependent objects without specifying their concrete class.

Term
Composite
Definition

Type: Structural

 

Purpose: Compose objects into tree structures to represent part-whole hierarchies. Lets clients treat individual objects and compositions of objects uniformly.

Term
 Decorator
Definition

Type: Structural

 

Purpose: Attach additional responsibilities to an object dynamically. Provide a flexible alternative to sub-classing for extending functionality.

Term
 Factory Method
Definition

Type: Creational

 

Purpose: Define an interface for creating an object, but let subclasses decide which class to instantiate. Lets a class defer instantiation to subclasses.

Term
 Facade
Definition

Type: Structural

 

Purpose: Provide a unified interface to a set of interfaces in a subsystem. Defines a high-level interface that makes the subsystem easier to use.

Term
Flyweight
Definition

Type: Structural

 

Purpose: Use sharing to support large numbers of fine grained objects efficiently.

Term
Singleton
Definition

Type: Creational

 

Purpose: Esure a class only has one instance and provide a global point of access to it.

Term
Null Object
Definition

Type: Structural

 

Purpose: Instead of using a null reference to convey absence of an object (for instance, a non-existent customer), one uses an object which implements the expected interface, but whose method body is empty. The advantage of this approach over a working default implementation is that a Null Object is very predictable and has no side effects: it does nothing.

Term
 Observer
Definition
[image]
Term
State
Definition
[image]
Term
Strategy
Definition
[image]
Term
Iterator
Definition
[image]
Term
Adapter
Definition
[image]
Term
Abstract Factory
Definition
[image]
Term
Composite
Definition
[image]
Term
Decorator
Definition
[image]
Term
Factory Method
Definition
[image]
Term
Facade
Definition
[image]
Term
Flyweight
Definition
[image]
Term
Singleton
Definition
[image]
Term
Null Object
Definition
[image]
Supporting users have an ad free experience!