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

浙公网安备 33010602011771号