UML类图——装饰者模式
2018-06-18 18:36:49 59 举报
为你推荐
查看更多
装饰者模式
作者其他创作
大纲/内容
Conponent
+ operation1(params):returnType- operation2(params)
ConcreteConponent
+ attribute1:type = defaultValue
+ operation1(params):returnType+ operation2(params)+ConcreteConponent()
Decorater
+ attribute1:type = defaultValue+ attribute2:type- attribute3:type
+ operation1(params):returnType+ operation2(params)- operation3()- operation4()- Decorater(conponent: Conponent)
收藏
0 条评论
回复 删除
下一页