2017年3月5日

openlivetest

摘要: openlivetest 阅读全文

posted @ 2017-03-05 23:41 S二十四桥S 阅读(45) 评论(0) 推荐(0)

officeTest

摘要: Officetest class Program { static void Main(string[] args) { Context context; context = new Context(new ConcreteStrategyA()); context.ContextInterface... 阅读全文

posted @ 2017-03-05 23:12 S二十四桥S 阅读(136) 评论(0) 推荐(0)

大话大话设计模式之策略模式

摘要: 策略模式是定义一系列算法的方法,所有这些算法完成都是相同的工作,只是实现不同,它可以以相同的方式调用所有的算法,减少了各种算法类之间的耦合 主要运用的场景:只要在分析过程中听到需要在不同时间应用不同的业务规则处理时,就可以使用 基本算法 //抽象算法类 abstract class Strategy 阅读全文

posted @ 2017-03-05 21:59 S二十四桥S 阅读(148) 评论(0) 推荐(0)

helloworld

摘要: helloworld 阅读全文

posted @ 2017-03-05 21:16 S二十四桥S 阅读(89) 评论(0) 推荐(0)

导航