摘要: #include <iostream.h>class A { public: virtual void print(void) { cout<<"A::print()"<<endl; } };class B:public A { public: virtual void print(void) { cout<<"B::print()"<<endl; }; }; class C:public B{public: virtual void print(void) { cout<<&quo 阅读全文
posted @ 2011-03-24 00:00 瓜蛋 阅读(509) 评论(2) 推荐(0) 编辑