Adapter Pattern
Adapter Pattern

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 explained by considering a simple 1-1 adapter. Below is an adapter which has provision for two wire input and converts it to a 3-output... » read more