有点疑惑,请大家帮忙
程序代码:
#include <iostream.h> //using namespace std; class sdf { public: int a; sdf(){ a=3; cout<<"a="<<this->a<<endl; }; }; class asdf:public sdf { public: int a; asdf(){ a=5; cout<<"a="<<this->a<<endl;}; }; asdf t; int main() { return 0; }设置断点显示:先进入派生类构造函数再进入基类的~~~~
怎么回事