摘要:
转自:https://www.runoob.com/design-pattern/decorator-pattern.html 1.介绍 饰器模式(Decorator Pattern)允许向一个现有的对象添加新的功能,同时又不改变其结构。这种类型的设计模式属于结构型模式,它是作为现有的类的一个包装。 阅读全文
posted @ 2021-10-09 01:45
lypbendlf
阅读(40)
评论(0)
推荐(0)
浙公网安备 33010602011771号