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
Core PrincipleConverts 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 sentenceQuote, 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 paragraphQuote, 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 Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.