// Constructor public RedState(AbsState state) { this.balance = state.Balance; this.account = state.Account; Initialize(); }
// Overloaded constructors public GoldState(AbsState state) : this(state.Balance, state.Account) { }
// Constructor public Account(string owner) { // New accounts are 'Silver' by default this._owner = owner; this._state = new SilverState(0.0, this); }
// Overloaded constructors public SilverState(AbsState state) : this(state.Balance, state.Account) { }