wordpress设置主导航无法点击百度搜索优化平台
什么是设计模式
设计模式是面向对象软件的设计经验,是通常设计问题的解决方案。每一种设计模式系统的命名、解释和评价了面向对象中一个重要的和重复出现的设计。
设计模式的分类
- 创建模式 - 用来帮助我们创建对象的 
- 工厂模式 (Factory Pattern)
 - 抽象工厂模式 (Abstract Factory Pattern)
 - 单例模式 (Singleton Pattern)
 - 建造者模式 (Builder Pattern)
 - 原型模式 (Prototype Pattern)
 
 - 结构模式 - 关注类和对象的组合 
- 适配器模式(Adapter Pattern)
 - 桥接模式(Bridge Pattern)
 - 装饰模式(Decorator Pattern)
 - 组合模式(Composite Pattern)
 - 外观模式(Facade Pattern)
 - 享元模式(Flyweight Pattern)
 - 代理模式(Proxy Pattern)
 
 - 行为模式 - 关注对象之间的通信 
- 模版方法模式(Template Pattern)
 - 命令模式(Command Pattern)
 - 迭代器模式(Iterator Pattern)
 - 观察者模式(Observer Pattern)
 - 中介者模式(Mediator Pattern&#
 
 
