public double PayWithCard(string username) { double insertedMoney = CardPayment.Pay(username); HandlePayment(insertedMoney); return(insertedMoney); }
public Payment() { CashPayment = new CashPayment(this); CardPayment = new CardPayment(this); }