GoF的23种设计模式讲解和演示 GoF的23种设计模式讲解和演示,参考《Design Patterns: Elements of Reusable Object-Oriented Software》一书,分别对单例模式、原型模式、工厂模式等进行代码演示和讲解。 ====== 目录 ====== GoF的23种设计模式讲解和演示:概述 GoF的23种设计模式讲解和演示:(一)单例模式-懒汉式单例-饿汉式单例