public Account(string owner) { _owner = owner; _state = new SilverState(0.0, this); }
public SilverState(AccountState state) : this(state.Balance, state.Account) { }
public GoldState(AccountState state) : this(state.Balance, state.Account) { }
public RedState(AccountState state) { this.balance = state.Balance; this.account = state.Account; Initialize(); }