What is the difference between the Facade and Adapter Pattern?

后端 未结 16 1088
孤城傲影
孤城傲影 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条回答
  •  Happy的楠姐
    2021-01-30 00:22

    Adapter == making a square peg fit into a round hole.

    Facade == a single control panel to run all the internal components.

提交回复
热议问题