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)); }
public double ContextInterface(double money) { return(_cashSuper.AcceptCash(money)); }
public double ConTextInterface(double money) { return(ce.AcceptCash(money)); }
public double GetResult(double money) { return(cs.AcceptCash(money)); }