3.15 c++虛基類 虛繼承 (虛派生)

#include <iostream> using namespace std; class Grand { public: Grand(int i) :m_valuegrand(i) { cout << "調用了Grand構造函數"<< endl; } virtual ~Grand() { cout << "調用了Grand析構函數"<< endl; } vo
相關文章
相關標籤/搜索