Dedian  
          -- 關(guān)注搜索引擎的開(kāi)發(fā)
          日歷
          <2006年4月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456
          統(tǒng)計(jì)
          • 隨筆 - 82
          • 文章 - 2
          • 評(píng)論 - 228
          • 引用 - 0

          導(dǎo)航

          常用鏈接

          留言簿(8)

          隨筆分類(lèi)(45)

          隨筆檔案(82)

          文章檔案(2)

          Java Spaces

          搜索

          •  

          積分與排名

          • 積分 - 66091
          • 排名 - 813

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

           
          Purpose:
          Decouple an abstraction from its implementation so that the two can vary independently.

          To think about this situation that an abstract class has two categories of inheritance. Each category can be a seperate hierarchical inheritance?tree, if we?derive all the subclasses from the abstract class, it will make complex?when we need to get some sub-classes that contains facades from two categories. So we need seperate those subclasses into differenct categories, typically one into implementation hierarchy while another into abstraction hierarchy which can?employ subclasses of implementation hierarchy. No matter how, the relationship between different hierarchies is a bridge. From this point, the bridge pattern design lets different hierarchies can evolve seperately.

          The structure of the Adapter Pattern (object adapter) may look similar to the Bridge Pattern. However, the adapter is meant to change the interface of an existing object and is mainly intended to make unrelated classes work together.

          reference:
          book:"Design Patterns” Gamma et al.
          http://en.wikipedia.org/wiki/Bridge_pattern
          http://www.c-sharpcorner.com/Language/BridgePatternsinCSRVS.asp
          http://www.codeproject.com/gen/design/bridge.asp
          posted on 2006-04-19 20:52 Dedian 閱讀(237) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Design Patterns
           
          Copyright © Dedian Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 佛冈县| 洮南市| 石屏县| 东莞市| 铜山县| 五河县| 达州市| 北流市| 石屏县| 鄄城县| 平昌县| 浪卡子县| 阿勒泰市| 司法| 旅游| 阳曲县| 石柱| 河源市| 广水市| 武城县| 芜湖县| 澜沧| 浦北县| 左云县| 思南县| 太和县| 大荔县| 南安市| 大方县| 嵊州市| 上思县| 青海省| 泸州市| 长治市| 宜都市| 云梦县| 嘉祥县| 浠水县| 光山县| 巨野县| 洛宁县|