What is the difference between the Facade and Adapter Pattern?

后端 未结 16 1084
孤城傲影
孤城傲影 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:42

    The main goal of the Facade pattern is to make the class or subsystem easier to use, while the main goal of the Adapter pattern is to adjust the interface to what the client expects.

提交回复
热议问题