摘要:
#include<iostream>using namespace std;class Base{public: virtual void Show()const{cout<<"调用Base::Show()"<<endl;}};class Derived:public Base{public: void Show()const{cout<<"调用Derived::Show()"<<endl;}};void Refers1(const Base &obj){ obj.Show();}voi 阅读全文