文件名称:Decorator-
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2016-07-11
- 文件大小:
- 1.69mb
- 下载次数:
- 0次
- 提 供 者:
- 赵*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
在 OO 设计和开发过程,可能会经常遇到以下的情况:我们需要为一个已经定义好的类添加新的职责(操作),通常的情况我们会给定义一个新类继承自定义好的类,这样会带来一个问题。通过继承的方式解决这样的情况还带来了系统的复杂性,因为继承的深度会变得很深。 而 Decorator 提供了一种给类增加职责的方法,不是通过继承实现的,而是通过组合。-In OO design and development process you may often encounter the following situation: we need to add a new class has been defined responsibilities (operations), usually we will define a new class that inherits the class defined, this will bring a problem. Through inheritance way to solve this situation also brings complexity of the system, because the depth of the inheritance will become deep. The Decorator is provided a method to the class increased responsibilities, not through inheritance, but by a combination thereof.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
装饰模式\Debug\装饰模式.exe
........\.....\装饰模式.ilk
........\.....\装饰模式.pdb
........\装饰模式\Debug\CL.read.1.tlog
........\........\.....\CL.write.1.tlog
........\........\.....\Decorator.obj
........\........\.....\link-cvtres.read.1.tlog
........\........\.....\link-cvtres.write.1.tlog
........\........\.....\link-rc.read.1.tlog
........\........\.....\link-rc.write.1.tlog
........\........\.....\link.read.1.tlog
........\........\.....\link.write.1.tlog
........\........\.....\main.obj
........\........\.....\vc110.idb
........\........\.....\vc110.pdb
........\........\.....\装饰模式.Build.CppClean.log
........\........\.....\装饰模式.lastbuildstate
........\........\.....\装饰模式.log
........\........\Decorator.cpp
........\........\Decorator.h
........\........\main.cpp
........\........\装饰模式.vcxproj
........\........\装饰模式.vcxproj.filters
........\装饰模式.sdf
........\装饰模式.sln
........\装饰模式.v11.suo
........\........\Debug
........\Debug
........\装饰模式
装饰模式