May 2022
Intermediate to advanced
678 pages
11h 48m
English
This chapter covers the Adapter pattern.
It converts the interface of a class into another interface that clients expect. The Adapter pattern lets classes work together that could not otherwise because of incompatible interfaces.
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 know how to invoke methods in software. These methods can follow an inheritance hierarchy. Now assume that you need to ...