会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
余~年
博客园
首页
新随笔
联系
订阅
管理
2020年2月17日
C++多态和虚函数
摘要: 转载自: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)
公告