What is the difference between the Facade and Adapter Pattern?

后端 未结 16 1073
孤城傲影
孤城傲影 2021-01-29 23:50

I\'ve been reading both definitions and they seem quite the same. Could anyone point out what are their differences?

Thanks

16条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-30 00:37

    Adapter makes two interfaces work together.

    Facade exposes a single class to a higher, and more limited level. For example, a view model facade may only expose certain read only properties of a lower level class.

提交回复
热议问题