C++使用虛擬繼承(Virtual Inheritance),使得派生類如果繼承基類多次,但只有一份基類的拷貝在派生類對象中。 虛擬繼承的語法: class 派生類: virtual 基類1,
確定! 回上一頁