Esempio n. 1
0
 public ATM()
 {
     currentState = new NoCardState(1000, this);
 }
Esempio n. 2
0
 // This constructor will create new state taking values from old state
 public CashWithdrawnState(ATMState state)
     : this(state.DummyCashPresent, state.Atm)
 {
 }
Esempio n. 3
0
 // This constructor will create new state taking values from old state
 public NoCardState(ATMState state)
     : this(state.DummyCashPresent, state.Atm)
 {
 }