Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Design Pattern Cheatsheet

Design Pattern Cheatsheet

Ratings: (0)|Views: 248 |Likes:
Published by a_anastassov
This cheatsheet contains depictions of all of the Gang of Four (GoF) family of design patterns.

It is organized into the three groups: Creational, Structural, and Behavioral patterns. Each pattern contains a brief description of what the patterns is used for and an UML diagram that illustrates how the pattern is used. (loaded from http://blog.acodingfool.com)
This cheatsheet contains depictions of all of the Gang of Four (GoF) family of design patterns.

It is organized into the three groups: Creational, Structural, and Behavioral patterns. Each pattern contains a brief description of what the patterns is used for and an UML diagram that illustrates how the pattern is used. (loaded from http://blog.acodingfool.com)

More info:

Published by: a_anastassov on May 07, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/07/2011

pdf

text

original

 
Creational Patterns
Design Patterns Cheat Sheet
Abstract Factory
Provides an interface for creating families of related or dependent objects withoutspecifying their concrete classes
ClientConcreteFactoryAbstractProductProductBProductA
+CreateProductA()+CreateProductB()
AbstractFactory
+CreateProductA()+CreateProductB()
Structural PatternsAdapter
Converts the interface of a class into another interface clients expect
ClientAdapter
+Request()
Target
+Request()
Adaptee
+SpecificRequest()
Structural Patterns (cont’d)
 c r   e a t     e s 
Singleton
Ensure a class only has one instance and provide a global point of access to it
Singleton
-instance-Singleton()+GetInstance()
Builder
Separates the construction of a complex object from its representation so that thesame construction process can create different representations.
Director
+Construct()
Builder
+BuildPart()
ConcreteBuilder
+BuildPart()
Product
builds
Factory Method
Defines an interface for creating an object but let subclasses decide which class toinstantiate
ProductConcreteProductCreator
+FactoryMethod()
ConcreteCreator
+FactoryMethod()
creates
Prototype
Specifies the kinds of objects to create using a prototypical instance and create newobjects by copying this prototype
ClientConcretePrototype1
+Clone()
Prototype
+Clone()
ConcretePrototype2
+Clone()
Proxy
Provides a surrogate or placeholder for another object to control access to it
Subject
+Request()
ClientRealSubject
+Request()
Proxy
+Request()
Flyweight
Uses sharing to support large numbers of fine-grained objects efficiently
Flyweight
+Operation(state)
FlyweightFactory
+GetFlyweight(key)
Flyweight
+Operation(state)
UnsharedFlyweight
+Operation(state)
ClientBridge
Decouples an abstraction from its implementation so that the two can varyindependently
ClientAbstraction
+Operation()
ConcreteImplementorA
+OperationImpl()
Implementor
+OperationImpl()
ConcreteImplementorB
+OperationImpl()
Composite
Composes objects into tree structures to represent part-whole hierarchies
ClientComponent
+Operation()+Add(component)+Remove(component)+GetChild(index)
Leaf
+Operation()
Composite
+Operation()+Add(component)+Remove(component)+GetChild(index)
Decorator
Attaches additional responsibilities to an object dynamically
Component
+Operation()
Decorator
+Operation()
ConcreteComponent
+Operation()
ConcreteDecorator
+Operation()+AddedBehavior()
Facade
Provides a unified interface to a set of interfaces in a subsystem
FacadeSubsystem

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->