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!
===Class adapter pattern=== This adapter pattern uses multiple [[Subtyping|polymorphic interfaces]] implementing or inheriting both the interface that is expected and the interface that is pre-existing. It is typical for the expected interface to be created as a pure [[Interface (Java)|interface]] class, especially in [[programming language|languages]] such as [[Java (programming language)|Java]] (before JDK 1.8) that do not support [[multiple inheritance]] of classes.<ref name="HeadFirst"/> [[File:ClassAdapter.png|thumb|300px|center|The class adapter pattern expressed in [[Unified Modeling Language|UML]].]] [[File:Adapter(Class) pattern in LePUS3.png|thumb|500px|center|The class adapter pattern expressed in [[Lepus3|LePUS3]]]]
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)