搬砖小弟
2019-06-30

定义 Allow an object to alter its behavior when its internal state changes.The object will appear to change its class.(当一...

2019-06-30

定义 Provide a unified interface to a set of interfaces in a subsystem.Facade defines a higher-level interface that makes...

2019-06-30

定义 Compose objects into tree structures to represent part-whole hierarchies.Composite lets clients treat individual obj...

2019-06-30

定义 Define a family of algorithms,encapsulate each one,and make them interchangeable.(定义一组算法,将每个算法都封装起来,并且使它们之间可以互换。) U...

2019-06-30

定义 Attach additional responsibilities to an object dynamically keeping the same interface.Decorators provide a flexible...