Ejemplo n.º 1
0
        public Account(string owner, double initialAmount)
        {
            m_owner = owner;
            m_balance = initialAmount;

            m_state = new NormalState(this); //设置初始状态
        }
Ejemplo n.º 2
0
 public void SetState(AccountState state)
 {
     m_state = state;
 }
Ejemplo n.º 3
0
 public void SetState(AccountState state)
 {
     m_state = state;
 }