========================================================================
CONSOLE APPLICATION : DesignPattern Project Overview
========================================================================
AppWizard has created this DesignPattern application for you.
This file contains a summary of what you will find in each of the files that
make up your DesignPattern application.
DesignPattern.vcproj
This is the main project file for VC++ projects generated using an Application Wizard.
It contains information about the version of Visual C++ that generated the file, and
information about the platforms, configurations, and project features selected with the
Application Wizard.
DesignPattern.cpp
This is the main application source file.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named DesignPattern.pch and a precompiled types file named StdAfx.obj.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" comments to indicate parts of the source code you
should add to or customize.
/////////////////////////////////////////////////////////////////////////////
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Complex Factory模式 1 定义创建对象的接口,并封装对象的创建 2 将具体化类的工作延迟到了类中 一般情况下,我们为了提高内聚和松耦合,经常会使用多态来处理一些问题。抽象出一些类的公共接口作为抽象基类或者接口。这样的话,我们将会面临一个挑战。在每次使用子类的时候,我们不得不经常使用base* = New XXX (这也无可厚非,但当系统复杂后,我们可能将无法维护子类的创建),最终我们在程序的扩展和维护成本上的开销将变得越来越大,越来越难。 我们知道经常“某个对象”由于需求的变化,对象的具体实现面临着剧烈的变化。为了应对这种变化我们抽象出它比较稳定的接口,隔离出“这个易变对象”的变化,从而保持系统中“其它依赖该对象的对象”不随着需求的改变而改变,这就是我们经常谈的Factory模式了。 详细见博客 http://blog.csdn.net/xiaoting451292510/article/details/8290809
资源推荐
资源详情
资源评论
收起资源包目录
ComplexFactory.7z (56个子文件)
SimpleFactory
groupinc
DESIGNPATTERN_SimpleFactory.h 1KB
DESIGNPATTERN_SimpleFactory.cpp 1KB
Product
Monitor.cpp 2KB
Keyboard.cpp 2KB
Mouse.cpp 2KB
groupinc
Computer.h 3KB
Keyboard.h 3KB
Monitor.h 3KB
Mouse.h 3KB
Profession.h 2KB
Computer.cpp 2KB
Profession.cpp 1KB
Singleton
DESIGNPATTERN_Singleton.cpp 1KB
groupinc
DESIGNPATTERN_Singleton.h 1KB
debug
DesignPattern.exe 72KB
DesignPattern.pdb 667KB
DesignPattern.ilk 449KB
ComplexFactory
DESIGNPATTERN_ComplexFactory.cpp 3KB
groupinc
DESIGNPATTERN_ComplexFactory.h 3KB
reouce
Pattern_AbstractFactory.jpg.bak 226KB
Pattern_SimpleFactory.jpg 58KB
Pattern_Singleton.jpg 23KB
Pattern_AbstractFactory.jpg 226KB
DesignPattern.asta 31KB
DesignPattern.asta.bak 31KB
Pattern_ComplexFactory.jpg 79KB
DesignPattern
Debug
Keyboard.obj 41KB
Profession.obj 35KB
vc80.pdb 268KB
BuildLog.htm 14KB
mt.dep 67B
Mouse.obj 41KB
DESIGNPATTERN_ComplexFactory.obj 39KB
DESIGNPATTERN_Singleton.obj 10KB
DESIGNPATTERN_SimpleFactory.obj 13KB
DesignPattern.exe.intermediate.manifest 388B
DesignPattern.exe.embed.manifest.res 472B
DesignPattern.obj 22KB
stdafx.obj 34KB
DesignPattern.pch 6.44MB
Monitor.obj 41KB
vc80.idb 267KB
DesignPattern.exe.embed.manifest 406B
Computer.obj 41KB
ReadMe.txt 1KB
DesignPattern.vcproj.chenlulu-PC.chenlulu.user 1KB
DesignPattern.vcproj 6KB
stdafx.cpp 300B
CompOptProj.txt 29B
DesignPattern.cpp 2KB
IncPathGroup.txt 151B
groupinc
MySelfDef.h 378B
stdafx.h 583B
DesignPattern.suo 36KB
DesignPattern.sln 904B
DesignPattern.ncb 1.13MB
共 56 条
- 1
资源评论
- csspassword2013-02-21很好,很实用,谢谢。
arvin_xiaoting
- 粉丝: 367
- 资源: 54
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功