摘要: 之所以将指针用引号表示,是因为成员函数“指针”不是指针!还是让代码来说话。#include <iostream>using namespace std;// 父类Aclass A{public: int funA() { return 2; }};// 父类Bclass B{public: int funB() { return 3; }};// 单继承class C : public A{public: int funC() { return 4; }};// 多重继承class D : public A, public B{public: int funD() {... 阅读全文
posted @ 2012-05-30 20:45 木愚 阅读(560) 评论(0) 推荐(0) 编辑