image

Decorator Design Pattern

选修课程   ¥0.00
Adapter provides a different interface to its subject. Proxy provides the same interface. Decorator provides an enhanced interface. Adapter changes an object's interface, Decorator enhances an object's responsibilities. Decorator is thus more transparent to the client. As a consequence, Decorator supports recursive composition, which isn't possible with pure Adapters. Composite and Decorator have similar structure diagrams, reflecting the fact that both rely on recursive composition to organize an open-ended number of objects. A Decorator can be viewed as a degenerate Composite with only one component. However, a Decorator adds additional responsibilities - it isn't intended for object aggregation.

授课教师

image

charles

It is me.

课程评价

暂时还没有评价

3 位共同奋斗的同学

关于我们

这是一个供广大学生提升的学习平台,在这里你可以根据实际需求选择自己喜欢的课程、记录笔记、加入小组,与其他学习伙伴一起学习!

联系我们

服务热线:
020-61179012

电子邮箱:
service@cnweike.cn

新手帮助

注册流程

选课流程

购课流程

北大未名研究院创新教育研究中心     广州未名中智教育科技有限公司     未名学堂    备案号:粤ICP备12074293号