Structural design patterns

Adapter Bridge Composite Decorator Facade Flyweight Private Class Data Proxy Adapter pattern- Adapter pattern works as a bridge between two incompatible interfaces. Real life example: Mobile charger adapter, like switch board in other country not compatible with your mobile charger so adapter will play here important role Bridge pattern: Heart of OOP programming, Definition : T o decouple an abstraction from its implementation so that the two can vary independently What it says: decouple the things from each other and join them using bridge so in future if 1 thing got problem other wont impact. Real life example: Fan and switchboard, electrical wire is bridge between switch and fan. Adapter pattern VS Bridge pattern Adapter makes things work after they're designed; Br...