Objective C 装饰模式设计源码

时间:2015-09-07 04:49:45
【文件属性】:
文件名称:Objective C 装饰模式设计源码
文件大小:57KB
文件格式:ZIP
更新时间:2015-09-07 04:49:45
装饰模式 装饰模式(Decorator),动态地给一个对象添加一些额外地职责,就增加功能来说,装饰模式比生成子类更为灵活。装饰模式主要是为已有功能动态地添加更多功能的一种方式。当系统需要新功能的时候,是向旧的类中添加新的代码。这些新加的代码通常装饰了原有类的核心职责或主要行为。
【文件预览】:
装饰模式
----装饰模式.xcodeproj()
--------project.xcworkspace()
--------xcuserdata()
--------project.pbxproj(13KB)
----.git()
--------logs()
--------info()
--------index(2KB)
--------COMMIT_EDITMSG(15B)
--------objects()
--------HEAD(23B)
--------config(111B)
--------refs()
--------branches()
--------hooks()
--------description(73B)
----装饰模式()
--------Components.h(257B)
--------ConcreteDecoratorA.m(340B)
--------ConcreteComponent.h(251B)
--------ConcreteDecoratorB.h(252B)
--------ConcreteDecoratorB.m(340B)
--------装饰模式-Prefix.pch(327B)
--------en.lproj()
--------main.m(642B)
--------Decorator.h(310B)
--------Decorator.m(375B)
--------装饰模式-Info.plist(1KB)
--------AppDelegate.h(280B)
--------ConcreteComponent.m(303B)
--------ConcreteDecoratorA.h(252B)
--------Components.m(253B)
--------AppDelegate.m(2KB)

网友评论