Design Patterns: Adapter
Understanding the pattern using Dragon Ball Z
There are 23 classic design patterns, which are described in the original book,
Design Patterns: Elements of Reusable Object-Oriented Software. These patterns provide solutions to particular problems, often repeated in the software development.
In this article, I am going to describe the how the Adapter Pattern; and how and when it should be applied.
Adapter Pattern: Basic Idea
An adapter allows two incompatible…