摘要:
概念: 命令模式:Encapsulates a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support und 阅读全文
摘要:
概念: 模版方法模式:Define the skeleton of an algoritm in an operation, deferring some step to subclasses. Template Method lets subclasses redefine certain ste 阅读全文
摘要:
概念: 享元模式:Use sharing to support large numbers of fine-gained object efficiently.使用享元模式可以有效地支持大量的细粒度额对象。这中英文翻译过来的定义,是不是看的一头雾水。简单来说就是结合工厂模式的对象池。看代码,其实倒不 阅读全文