摘要:
策略模式的基本代码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)
浙公网安备 33010602011771号