摘要:
The Template Method Patterndefines the skeleton of an algorithm in a method, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure. 阅读全文
摘要:
The Template Method Patterndefines the skeleton of an algorithm in a method, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure. 阅读全文
摘要:
The Facade Patternprovides a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use. 阅读全文
摘要:
The Adapter Patternconverts the interface of a class into another interface the clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces. Object Adapter v.s. Class Adapter 阅读全文
摘要:
The Command Patternencapsulates a request as an object, thereby letting you parameterize other objects with different requests, queue or log requests, and support undoable operations. 阅读全文
|