策略模式(设计模式)

时间:2020-08-25 11:31:16
【文件属性】:
文件名称:策略模式(设计模式)
文件大小:23KB
文件格式:ZIP
更新时间:2020-08-25 11:31:16
策略模式 设计模式 C++ Qt (1) Strategy 类:定义所有支持的算法的公共接口,用纯虚函数定义抽象算法接口; (2) ConcreteStategy 类簇:封装了具体的算法或行为,继承自Strategy,各种策略的具体实现; (3) Context 类,持有一个策略类的引用,传入具体的ConcreteStategy来配置,最终给客户端调用。
【文件预览】:
2_MallPromotion
----crashfactory.cpp(474B)
----crashfactory.h(223B)
----MallPromotion.pro.user(22KB)
----widget.ui(4KB)
----MallPromotion.pro(1KB)
----cashcharge.cpp(629B)
----cashcharge.h(671B)
----main.cpp(175B)
----widget.cpp(1KB)
----widget.h(654B)
----readme.txt(44B)
1_MallPromotion
----MallPromotion.pro.user(22KB)
----widget.ui(3KB)
----MallPromotion.pro(1009B)
----main.cpp(175B)
----widget.cpp(1KB)
----widget.h(543B)
----readme.txt(59B)
3_MallPromotion
----MallPromotion.pro.user(22KB)
----widget.ui(4KB)
----MallPromotion.pro(1KB)
----cashcharge.cpp(629B)
----cashcharge.h(811B)
----main.cpp(175B)
----stratge.h(212B)
----widget.cpp(2KB)
----widget.h(773B)
----readme.txt(44B)
----cashcontext.h(278B)
----cashcontext.cpp(580B)

网友评论