摘要:
关于C++中继承、重载、掩盖MoaKap在开始之前,我们可以先看下面这个小程序:#includeusingnamespacestd;classBase{private:intx;public:virtualvoidmf1(){cout<<"Base: mf1()"<<endl;}virtualvoidmf1(int){cout<<"Base: mf1(int)"<<endl;}virtualvoidmf2(){cout<<"Base: mf2()"<<endl;} 阅读全文