How to allow objects with incompatible interfaces to collaborate.
When legacy or external code doesn't fit your interfaces, the adapter pattern wraps it behind the expected API so your system can use it without modification.
Adapter pattern is a structural design pattern which is used for making two interfaces compatible which otherwise were incompatible. It is commonly referred to as wrapper pattern. This can be best...