Design Patterns Series 9 - Adapter Pattern
In this post and coming posts, you will get inside scoop on patterns and OOP . Patterns have great deal to say about OOP and about how to improve your object-oriented experience. Sometimes objects doesn't fit together as they should, a class may have changed, or an object turns out to be too difficult to work with. We will introduce you a rescue by converting two design pattern, Adapter Pattern and Facade Pattern . The Adapter Pattern: It lets you adapt what an object or class has to offer so that another object or class can make use of it. It lets you adapt what an object or class exposes to what another object or class expects. Adapter pattern lets you fix the interface between objects and classes without to modify the objects or classes directly. It lets you convert the interface of a class into another interface the clients expects. Adapter pattern lets classes work togthter that couldn't otherwise because of incompatible interfaces. Although the official de...