摘要: 转载自:http://c.biancheng.net/view/2294.html 1.通过基类指针只能访问派生类成员变量但不能访问派生类的成员函数。 例如: 1 #include "pch.h" 2 #include <iostream> 3 4 using namespace std; 5 6 阅读全文
posted @ 2020-02-17 17:52 余~年 阅读(136) 评论(0) 推荐(0)