![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设计模式
fanqiliang630
这个作者很懒,什么都没留下…
展开
-
Structural Pattern
1. Adapter(Wrapper)Convert the interface of a class into another interface clients expect. 有时候一些工具类被设计为复用, 但是由于接口不匹配的问题不能够复用 Adapter会为Adaptee(adapted class)增加一些没有的没有的功能, 用来与应用程序相适配.实现方式: class composition(更加灵活 <- 多态性) multi-inheritance Plu原创 2020-12-18 21:01:49 · 799 阅读 · 2 评论 -
Behavioral Patterns
Behavioral patterns are concerned with algorithms and the assignment of responsibilities between objects.Behavioral patterns describe not just patterns of objects or classes but also the patterns of communication between1. Chain of ResponsibilityAv原创 2020-12-18 21:00:41 · 876 阅读 · 1 评论