Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Concept

Adapter Pattern

Technique

A Gang of Four structural design pattern that converts the interface of one class into an interface another part of the code expects, letting classes with incompatible interfaces work together without modifying either one.

Facts
Origin Year
1994 1
Core Principle
Converts the interface of an existing class into another interface a client expects, letting otherwise incompatible classes work together without changing their source code. 2
Connections

Associated With

Erich Gamma, Pioneers

Erich Gamma co-authored the 1994 Design Patterns book that named and catalogued the Adapter pattern among the original 23.

In Field

Sources
1. Wikipedia: Design Patterns (book)
Wikimedia FoundationLead section, first sentence
Quote, Lead section, first sentence
Design Patterns: Elements of Reusable Object-Oriented Software (1994) is a software engineering book describing software design patterns.
View the Source
2. Wikipedia: Adapter Pattern
Wikimedia FoundationLead section, first paragraph
Quote, Lead section, first paragraph
the adapter pattern is a software design pattern (also known as wrapper, an alternative naming shared with the decorator pattern) that allows the interface of an existing class to be used as another interface. It is often used to make existing classes work with others without modifying their source code.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.