摘要:class father{public: father(){ x=new int;cout<<"father constructor running\n";}~father(){ delete x;cout<<"father destructor running\n";}private: int *x;};class son :public father{ public : son(){ y= new y;cout<<"son constructor running\n";}~son(){ dele
阅读全文