[問題] 抽象類別其繼承類別的建構函數宣告
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
無
問題(Question):
這是小弟閱讀到C++ primer 5e,ch13中的關於抽象類別的範例
其中AcctABC是抽象類別,Brass,BrassPlus為繼承類別
在標頭檔的部分,第31行和第46行都是繼承類別的建構函數
小弟的問題是:
同樣是繼承類別,為什麼第31行有:AcctABC(s, an, bal),而46行卻沒有呢?
感謝答覆!!
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
http://ideone.com/8i2HB
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 175.181.197.106
※ 編輯: rtt2008 來自: 175.181.197.106 (02/03 23:23)
→
02/03 23:25, , 1F
02/03 23:25, 1F
→
02/03 23:26, , 2F
02/03 23:26, 2F
推
02/03 23:34, , 3F
02/03 23:34, 3F
→
02/03 23:35, , 4F
02/03 23:35, 4F
→
02/03 23:49, , 5F
02/03 23:49, 5F
→
02/03 23:50, , 6F
02/03 23:50, 6F
→
02/03 23:52, , 7F
02/03 23:52, 7F
→
02/04 00:11, , 8F
02/04 00:11, 8F
→
02/04 00:13, , 9F
02/04 00:13, 9F