zoukankan      html  css  js  c++  java
  • Adapter 连接连个不同接口

    Function:
          Create a new interface(like a adapter or wrapper) between client and class of library. So when use another library, just need to modify the adapter without letting the client knows the change.

    participants:
          client      IAdapter       Adapter       Adaptee

    Summary:
          Pattern Adapter can hide the detail of the library. Client only knows the interface IAdapter, knows nothing about  how the Adapter does it. 
          

  • 相关阅读:
    java面试常见的类
    Day6
    DAY5
    Day4
    Day3
    Day2
    Day1
    echarts3关系图:力引导布局, 固定某些节点
    Hbuilder中配置cmd
    webpack 学习
  • 原文地址:https://www.cnblogs.com/kevinge/p/1544550.html
Copyright © 2011-2022 走看看