設計模式分類

來源:互聯網
上載者:User

《設計模式解析》書翻譯的不是很好,看得我頭都大了。去網上找了一下資料,發現李會軍寫的系列文章挺好。

他將設計模式分為 建立型模式、結構型模式、行為型模式三大類,我覺得挺新穎的。

按照他的分類,模類分類如下: 

一、建立型模式

    單件模式(Single Pattern)
    抽象原廠模式(Abstract Factory)
    建造者模式(Builder Pattern)
    Factory 方法(Factory Method)
    原型模式(Protype Pattern)

二、結構型模式
    適配器模式(Adapter Pattern)
    橋接模式(Bridge Pattern)
    裝飾模式(Decorator Pattern)
    組合模式(Composite Pattern)
    面板模式(Façade Pattern)
    享元模式(Flyweight Pattern)
    代理模式(Proxy Pattern)

 

三、行為型模式
    模版方法模式(Template Method)
    命令模式(Command Pattern)
    迭代器模式(Iterator Pattern)
    觀察者模式(Oberver Pattern)
    中介者模式(Mediator Pattern)
    備忘錄模式(Memento Pattern)
    解譯器模式(Interpreter Pattern)
    狀態模式(State Pattern)
    策略模式(Strategy Pattern)
    職責鏈模式(Chain of Responsibility)
    訪問者模式(Visitor Pattern)

 李會軍的文章連結為:http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.