static未央

博客园 首页 新随笔 联系 订阅 管理

2011年2月24日 #

摘要: 策略模式的基本代码usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespace策略模式{classProgram{staticvoidMain(string[]args){Contextcontext;context=newContext(newConcreteStrategyA());context.ContextInterface();context=newContext(newConcreteStrategyB());context.ContextInterface();context=newContext( 阅读全文
posted @ 2011-02-24 00:02 abstract未央 阅读(466) 评论(0) 推荐(0)