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
相关文章
相关标签/搜索