摘要:
策略模式适用于 需要经常改变算法实现的场景 比如商场的销售场景中(正常销售、返利销售、折扣),使得算法的改动不影响客户端的调用using System;using System.Collections.Generic;using System.Text;namespace 策略模式{ public class CashContext { private CashSuper super=null; public CashContext(CashInfo info) { switch (info.SaleType) ... 阅读全文
posted @ 2013-07-02 15:55
王英磊
阅读(139)
评论(0)
推荐(0)

浙公网安备 33010602011771号