出現錯誤cannot allocate an object of abstract type「 」 純虛函數

在基類中申明的虛函數,在派生類中必須繼承並實現。在new一個派生類時纔不會報該錯誤。函數 將基類中全部虛函數,在派生類中都要繼承、實現。spa
相關文章
相關標籤/搜索