# Adapter Pattern Confidence: high Last verified: 2026-05-22 Generation: human_only ## TL;DR Converts interface of a class into another interface clients expect. Lets incompatible interfaces work together. Object adapter (composition) preferred over class adapter (inheritance). ## Core Explanation Example: wrapping a third-party logging library behind your application's Logger interface, enabling easy replacement. Adapter vs. Facade: Adapter changes interface; Facade simplifies a complex subsystem with a new unified interface. Bridge pattern separates abstraction from implementation. ## Further Reading - [Design Patterns (Gang of Four)](undefined)