Notes, and exercises relating to the GoF book
Here each pattern is listed and a Java example is offered. The intent is for the example to be as correct as possible honouring the GoF, Java, and good design principles.
- Abstract Factory (Test) (Code)
- Builder (Test) (Code)
- Factory Method (Test) (Code)
- Prototype (Test) (Code)
- Singleton (Test) (Code)
- Adapter (Test) (Code)
- Bridge (Test) (Code)
- Composite (Test) (Code)
- Decorator (Test) (Code)
- Facade (Test) (Code)
- Flyweight (Test) (Code)
- Proxy (Test) (Code)
- Chain of Responsibility (Test) (Code)
- Command (Test) (Code)
- Interpreter (Test) (Code)
- Iterator (Test) (Code)
- Mediator (Test) (Code)
- Memento (Test) (Code)
- Observer (Test) (Code)
- State (Test) (Code)
- Strategy (Test) (Code)
- Template Method (Test) (Code)
- Visitor (Test) (Code)
"GoF" Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides. (1994) Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley Professional