Chapter 7

The Adapter pattern.

The adapter pattern converts the interface of a class into another interface the client expects. Adapter lets classes work together that couldn't otherwise because if incompatible interfaces.

From the Book

adapter1

adapter 2

The authors also discuss the notion of an iterator

Press Spacebar to continue


Creative Commons License
This work is licensed under a Creative Commons License.
Ernest Ackermann Department of Computer Science, Mary Washington College
CPSC 110 | CPSC 330 | CPSC 401

Bibliographic Information: