This post can be used as a quick refresher of the GoF Structural Design Patterns. I have just given the intents of each of the structural patterns. This will be of use to experienced professionals.
Adapter
INTENT: Convert the interface of a class into another interface that clients expect. Adapter lets classes work together that couldn’t otherwise because of incompatible interface.
Bridge
INTENT: Decouple an abstraction from its implementation so that the two can vary independently.
Composite
INTENT: Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
Decorator
INTENT: Attach flexible additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
Facade
INTENT: 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.
Flyweight
INTENT: Use sharing to support large numbers of fine-grained objects efficiently.
Proxy
INTENT: Provide a surrogate or placeholder for another object to control access to it.
RK
Find Singapore Apartment and Room Rentals here
Looking for a date or love? Click here to find one for free!!
Stock Market Views, Experiences on http://theindiastockmarket.blogspot.com/
Filed under: Technology | Tagged: design patterns, gof, Technology
I would like to know more about Structural Design Patterns…
PrIDal comment2 ,