Esempio n. 1
0
        public static CashSuper creatCashAccept(string type)
        {
            CashSuper cs = null;

            switch (type)
            {
            case "正常价":
                cs = new OriginalPrice();
                break;

            case "打八折":
                cs = new DiscountPrice("0.8");
                break;

            default:
                break;
            }
            return(cs);
        }