• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            春暖花開
            雪化了,花開了,春天來了
            posts - 149,comments - 125,trackbacks - 0

            設計模式學習筆記

            最近利用早晨的大好時光,學習了一下設計模式,同時學習了英語。目前一共學習了八種模式:

            一、             The Observer Pattern

            It defines a one to many relationship between a set of objects. When the state of one object changes, all of its dependents are notified.

            二、             The Decorator Pattern

            It attaches additional responsibilities to an object dynamically.Decorators provide a flexible alternative to subclassing for extending functionality.

            三、             The Factory Pattern

            It defines an interface for creating an object, but lets subclasses decide which class to instantiate. Factory method lets a class defer instantiation to subclass.

            四、             The Abstract Pattern

            It provides an interface for creating families of related or dependent objects without specifying their concrete classes.

            五、             The Singleton Pattern

            It ensures a class has only one instance, and provides a global point of access to it.

            六、             The Command Pattern

            It encapsulates a request as an object, thereby letting you parameterize other objects with different requests, queue or log requests, and support undoable operations.

            七、             The Adapter Pattern

            It converts the interface of a class into another interface the clients expect. Adapter lets classes work together that couldn’t otherwise because of  imcompatible interface.

            八、             The Façade Pattern

            It provides a unified interface to a set of interfaces in a subsystem. Façade defines a higher-level interface that makes the subsystem easier to use.

             

            在這上述的八個模式中,包含了設計模式的三種類型:創建型模式,結構型模式,行為模式。其中FactoryAbstract FactorySingleton為創建型模式,DecoratorAdapterFacade為結構型模式,其余的CommandObserver為行為模式。

            不過,感覺有時侯理解的特別清楚,但過一段時間就忘了。所以一定要將其用起來,才能對其有深深的體會,不會就是死的知識。一定要讓其活起來。

            呵呵,又看了一些蝸牛的家寫的設計模式趣解,反而更有助于理解呦,不妨看看。鏈接地址為:http://m.shnenglu.com/bangle/archive/2008/08/23/59725.html

            posted on 2009-07-21 18:11 Sandy 閱讀(383) 評論(0)  編輯 收藏 引用 所屬分類: 設計模式
            国产亚州精品女人久久久久久 | 国产99久久久国产精品小说| 国产精品一区二区久久 | 亚洲综合精品香蕉久久网97| 狠狠综合久久综合中文88| 狠狠色综合久久久久尤物| 一本久久综合亚洲鲁鲁五月天亚洲欧美一区二区 | 国产视频久久| 国产精品无码久久综合| 亚洲国产精品综合久久网络| 亚洲国产另类久久久精品| 久久男人中文字幕资源站| av无码久久久久久不卡网站| 久久精品国产亚洲Aⅴ蜜臀色欲| 国产午夜福利精品久久2021 | 亚洲综合久久夜AV | 精品久久一区二区三区| 久久天天躁夜夜躁狠狠躁2022| 精品国产青草久久久久福利| 精品伊人久久大线蕉色首页| 久久av高潮av无码av喷吹| 亚洲av成人无码久久精品| 久久婷婷五月综合成人D啪| 国产精品久久一区二区三区| 久久久久高潮综合影院| 久久亚洲国产精品五月天婷| 久久青草国产精品一区| 97超级碰碰碰久久久久| 人妻无码精品久久亚瑟影视 | 99久久99久久精品国产片果冻| 亚洲精品国产第一综合99久久| 久久九九青青国产精品| 久久人人爽人人爽人人AV东京热| 无码国产69精品久久久久网站| 青青青青久久精品国产h久久精品五福影院1421 | 久久综合九色综合欧美就去吻| 久久99精品综合国产首页| 久久亚洲美女精品国产精品| 伊人久久大香线蕉av一区| 久久只有这精品99| 久久亚洲精品无码aⅴ大香|