Example #1
0
 // this constructor will be used by the other one
 public CashWithdrawnState(int amountRemaining, ATM atmBeingUsed)
 {
     this.Atm = atmBeingUsed;
     this.DummyCashPresent = amountRemaining;
 }
Example #2
0
 // this constructor will be used by the other one
 public NoCardState(int amountRemaining, ATM atmBeingUsed)
 {
     this.Atm = atmBeingUsed;
     this.DummyCashPresent = amountRemaining;
 }