The Design Patterns Smalltalk Companion
excerpts:
http://stephane.ducasse.free.fr/FreeBooks/SmalltalkDesignPatternCompanion/
notes on page 103
Structural Patterns
1. Adapter : Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.
2. Bridge : Decouple an abstraction from its implementation so that the two can vary independently.
3. Composite : Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
4. Decorator : Attach additional responsibilities and behavior to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
5. Facade : Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
6. Flyweight : use sharing to support large numbers of fine-grained objects efficiently.
7. Proxy : Provide a surrogate or placeholder for another object to control access to it.
Keine Kommentare:
Kommentar veröffentlichen