Adapter Design Pattern

The adapter pattern is a software design pattern (also known as wrapper, an alternative naming shared with the decorator pattern) that allows the interface of an existing class (in my implementation I call it Adaptee) to be used as another interface (I call it Target). It is often used to make existing classes work with others without modifying their source code. In this article at OpenGenus, we show two ways to implement the Adapter design pattern.

Table of contents:

Motivation (why do we need...
 •  0 comments  •  flag
Share on Twitter
Published on August 13, 2023 11:50
No comments have been added yet.