/DesignPattern

阅读《Head First 设计模式》过程中,以C++代码的方式写出各种模式实现示例,便于理解。

Primary LanguageC++

DesignPattern

阅读《Head First 设计模式》过程中,以C++代码的方式写出各种模式实现示例,便于理解。

  • 策略模式(Strategy)

  • 观察者模式(Observer)

  • 装饰者模式(Decorator)

  • 简单工厂模式(SimpleFactory)

  • 工厂模式(Factory)

  • 抽象工厂模式(AbstractFactory)

  • 单例模式(Singleton)