摘要:
#include <iostream>using namespace std;class A{public: A() { cout << "A::this = " << this << endl; }; /*virtual*/ ~A() {} // virtual 1public: int a;};class B : /*virtual */public A // virtual 2{public: B() { cout << "B::this = " << this << 阅读全文