Refactoring Workbook

Interlude I3.1 Patterns.

Following is a list of design patterns described in Gamma's Design Patterns . What refactorings might you use to evolve to some of these patterns?

Creational patterns

___ Abstract Factory

___ Builder

___ Factory Method

___ Prototype

___ Singleton

Structural Patterns

___ Adapter

___ Bridge

___ Composite

___ Decorator

___ Fa §ade

___ Flyweight

___ Proxy

Behavioral Patterns

___ Chain of Responsibility

___ Command

___ Interpreter

___ Iterator

___ Mediator

___ Memento

___ Observer

___ State

___ Strategy

___ Template Method

___ Visitor

See Appendix A for solutions.

Категории