软件体系结构设计ly.ppt
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 3.2.8策略模式 strategy模式参与者 Strategy:定义所有支持算法的公共接口。Context使用该接口来调用ConcreteStrategy定义的算法。 ConcreteStrategy:用Strategy接口实现具体算法。 Context:用一个ConcreteStrategy对象来配置。维护一个Strategy对象的引用。可定义一个接口使Stategy访问它的数据。 * 3.2.8策略模式 实例:电子商务网站购物车系统,不同商品不同促销方法 Strategy public abstract class Strategy { public abstract void method(); } ConcreteStrategy public class strategyImplA extends Strategy { public void met
您可能关注的文档
- 资本运营复习材料.doc
- 资本运营模式与案例.ppt
- 资本运营理论与实务复习资料.doc
- 资本运营理论与实务详细复习资料.doc
- 资本运营章二.ppt
- 资本运营第章.ppt
- 5.7闭环系统的频率特性.ppt
- 资源与运营管理新增模拟题.doc
- 资源与运营管理最新资料.doc
- 资源与运营管理机考题.doc
- 50万吨汽油调和技改项目环评报告书.pdf
- 河北省文安县第一中学2025-2026学年高一上学期10月月考英语试题(解析版).docx
- 河南省TOP二十校205—2026学年高一上学期10月联考生物试题(原卷版).docx
- 河南省安阳市第一中学、鹤壁市高中、新乡市第一中学三校2025-2026学年高一上学期第一次联考数学试题(解析版).docx
- 河南省部分高中2025-2026学年高一上学期第二次月考数学试卷(解析版).docx
- 河南省百师联盟2025-2026学年高二10月联考数学试题(北师大版)(解析版).docx
- 河南省部分学校2025-2026学年高一上学期期中考试数学试题(解析版).docx
- 河南省部分重点中学2025~2026学年高二上学期10月末质量检测数学试题(解析版).docx
- 河南省部分重点中学2025-2026学年高二上学期10月末质量检测英语试题(解析版).docx
- 桥梁伸缩缝安装工艺(可编辑).pptx
原创力文档

文档评论(0)