This chapter covers the Adapter pattern.
GoF Definition
Convert the interface of a class into another interface client’s expect. Adapter lets classes work together that otherwise could not because of incompatible interfaces.
Concept
From the GoF definition, you can guess that this pattern deals with at least two incompatible inheritance hierarchies. In a domain-specific system, the clients are habituated on how to invoke methods in software. Those methods can follow an inheritance hierarchy. Now assume that you need to upgrade your system and need to implement a new inheritance hierarchy. ...