private double SetType(CashType type, double price, double num)
        {
            CashSuper cashsuper = CashFactory.createCashAccept(type);

            double totalPrices = 0d;

            totalPrices = cashsuper.AcceptCash(price * num);

            return(totalPrices);
        }
 public double GetResult(double money)
 {
     return(_cashSuper.AcceptCash(money));
 }
示例#3
0
 public double ContextInterface(double money)
 {
     return(_cashSuper.AcceptCash(money));
 }
示例#4
0
 public double ConTextInterface(double money)
 {
     return(ce.AcceptCash(money));
 }
示例#5
0
 public double GetResult(double money)
 {
     return(cs.AcceptCash(money));
 }