Skip to content

Glossary: Software Design Patterns

Adapter

Also written: adapters

A small wrapper class that holds a library object you can't edit and offers the interface your code expects. `UpsCarrier` turns UPS's answer in cents into dollars.

Where the book teaches it

Related terms

WrapperDecoratorInterface