Ask Your Question
0

How do the Facade and Adapter Patterns differ from each other?

asked 2023-05-18 17:01:07 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-18 17:20:02 +0000

nofretete gravatar image

The Facade and Adapter Patterns are both used to simplify and modify an existing system or interface, but they differ in their approaches and purposes.

The Facade Pattern provides a simplified interface to a complex system, while the Adapter Pattern helps two incompatible interfaces to work together. The Facade Pattern acts as a mediator between the client and the subsystems, while the Adapter Pattern bridges the gap between two interfaces.

The Facade Pattern aims to make the system easier to use, by hiding the complexity of the system and presenting a simpler interface. The Adapter Pattern aims to make two interfaces work together seamlessly by modifying the interface of one of them.

In summary, the Facade Pattern provides a simplified interface to a complex system while the Adapter Pattern bridges the gap between two incompatible interfaces.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-18 17:01:07 +0000

Seen: 16 times

Last updated: May 18 '23