摘要:
#include <iostream>using namespace std;class A{public: A() { print(); } void fun() { print(); } virtual void print() { cout<<"A::print()"<<endl; } int m;};class B: public A{public: virtual void print() { cout<<"B::print()"<<endl; }}i... 阅读全文