// This constructor will create new state taking values from old state public CardValidatedState(ATMState state) :this(state.DummyCashPresent, state.Atm) { }
// This constructor will create new state taking values from old state public CardValidatedState(ATMState state) : this(state.DummyCashPresent, state.Atm) { }
// This constructor will create new state taking values from old state public CashWithdrawnState(ATMState state) : this(state.DummyCashPresent, state.Atm) { }
// This constructor will create new state taking values from old state public NoCashState(ATMState state) :this(state.DummyCashPresent, state.Atm) { }
// This constructor will create new state taking values from old state public CashWithdrawnState(ATMState state) :this(state.DummyCashPresent, state.Atm) { }
// This constructor will create new state taking values from old state public NoCardState(ATMState state) : this(state.DummyCashPresent, state.Atm) { }
public ATM() { currentState = new NoCardState(1000, this); }
public ATM() { currentState = new NoCardState(1000, this); }