摘要: #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 阅读全文
posted @ 2012-10-15 15:53 myth_HG 阅读(144) 评论(0) 推荐(0) 编辑