摘要:
#include using namespace std;class common{public: virtual void hello(){couthello(); return 0;}静态联编:在编译时就确定指针指向的类#include using namespace std;cla... 阅读全文
摘要:
继承#include using namespace std;class father{public: void getHeight(){coutweightheightageusing namespace std;class father{public: int height;};cl... 阅读全文