摘要:
class A { public: int a; void showthis() { printf("from A,this:%p\n", this); } }; class B { public: int b; void infothis() { printf("from B,this:%p\n" 阅读全文
摘要:
You can: Derived(const Derived& d) : Base(d) { cout << "Derived::Derived(const B&)" << endl; } This calls the Base copy constructor on the Base sub-ob 阅读全文