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
Facade 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|Software design pattern}} The '''facade pattern''' (also spelled ''façade'') is a [[software design pattern]] commonly used in [[object-oriented programming]]. Analogous to a [[façade]] in architecture, it is an [[Object (computer science)|object]] that serves as a front-facing interface masking more complex underlying or structural code. A facade can: * improve the readability and usability of a [[software library]] by masking interaction with more complex components behind a single (and often simplified) [[application programming interface]] (API) * provide a context-specific interface to more generic functionality (complete with context-specific input [[Data validation|validation]]) * serve as a launching point for a broader [[Code refactoring|refactor]] of [[Monolithic system|monolithic]] or tightly-coupled systems in favor of more [[Loose coupling|loosely-coupled]] code Developers often use the facade design pattern when a system is very complex or difficult to understand because the system has many interdependent classes or because its source code is unavailable. This pattern hides the complexities of the larger system and provides a simpler interface to the client. It typically involves a single [[wrapper class]] that contains a set of members required by the client. These members access the system on behalf of the facade client and hide the implementation details.
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)