Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Adapter pattern
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Design pattern in computer programming}} {{excessive examples|date=January 2011}} In [[software engineering]], the '''adapter pattern''' is a [[software design pattern]] (also known as [[Wrapper function|wrapper]], an alternative naming shared with the [[decorator pattern]]) that allows the [[interface (computer science)|interface]] of an existing [[class (computer science)|class]] to be used as another interface.<ref name="HeadFirst"/> It is often used to make existing classes work with others without modifying their [[source code]]. An example is an adapter that converts the interface of a [[Document Object Model]] of an [[XML]] document into a tree structure that can be displayed.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)