Answers to Quiz 6

  1. 錯誤發生在 cout << myBox.m_Height << endl;
    m_Height宣告成protected從main是不能直接存取的.
  2. 2
    CCandyBox destructor called
    CBox destructor called