Design Patterns - Categories
Monday, September 14, 2009
The Gang of Four have documented very generic patterns that are applicable for Object-Oriented design. These patterns doesn't correspond to any domain in specific, they give you a design strategy most viable to solve a recurring problem. These patterns are basically grouped on their purpose. Patterns can have either creational, structural, or behavioral purpose.
1) Creational patterns concern the process of object creation.
2) Structural patterns deal with the composition of classes and objects.
3) Behavioral patterns characterize the way classes or objects interact and distribute responsibility.
Categorized pattern list:
Creational patterns:
1) Factory method
2) Abstract Factory
3) Builder
4) Prototype
5) Singleton
Structural patterns:
1) Adapter
2) Bridge
3) Composite
4) Decorator
5) Facade
6) Proxy
Behavioral patterns:
1) Interpreter
2) Template method
3) Chain of responsibility
4) Command
5) Iterator
6) Mediator
7) Memento
8) Flyweight
9) Observer
10) State
11) Strategy
12) Visitor
Creational patterns defer part of object creation to either sub-classes or some other objects. The Structural patterns use inheritance to compose classes and describes ways to assemble objects. The Behavioral patterns use inheritance to describe algorithms and flow of control, and can also describe how objects interact with each other to complete a task that no single object can carry on by itself.
1) Creational patterns concern the process of object creation.
2) Structural patterns deal with the composition of classes and objects.
3) Behavioral patterns characterize the way classes or objects interact and distribute responsibility.
Categorized pattern list:
Creational patterns:
1) Factory method
2) Abstract Factory
3) Builder
4) Prototype
5) Singleton
Structural patterns:
1) Adapter
2) Bridge
3) Composite
4) Decorator
5) Facade
6) Proxy
Behavioral patterns:
1) Interpreter
2) Template method
3) Chain of responsibility
4) Command
5) Iterator
6) Mediator
7) Memento
8) Flyweight
9) Observer
10) State
11) Strategy
12) Visitor
Creational patterns defer part of object creation to either sub-classes or some other objects. The Structural patterns use inheritance to compose classes and describes ways to assemble objects. The Behavioral patterns use inheritance to describe algorithms and flow of control, and can also describe how objects interact with each other to complete a task that no single object can carry on by itself.
0 comments: to “ Design Patterns - Categories ” so far...
Post a Comment