Posted on March 24th, 2010 at 0:35 by fr3@K
哈~ 同事 starryalley 的照片上了 iThome.
哈~ 同事 starryalley 的照片上了 iThome.
這幾個月忙於工作, 這個部落格都快被我給荒廢掉了. 昨晚終於花了時間完成了一篇積了一兩個月, 說明 virtual function 在執行時期的 override 過程以及 virtual function 與 constructor/destructor 混搭結果 的文字.
今天我準備了個題目給花了時間看了它的朋友, 當作對小弟的說明能力來個測驗. 請問, 下面的 code snip 的輸出結果是什麼?
(more…)
不知道你有沒有過這樣的經驗 – 想要在父類的 constructor 裏面呼叫被子類 override (或是 implement) 的 (pure) virtual function?
(more…)
Except where otherwise noted, COdE fr3@K by
fr3@K is licensed under a
Creative Commons Attribution-Share Alike 3.0 License.