会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
luoqingci
博客园
首页
新随笔
联系
订阅
管理
2023年4月17日
虚基类应用
摘要: 一、编写动物类animal,受保护数据成员name(名称、,string),age(年龄,int),公有函数成员void show(),输出“Animal,名称,年龄";公有派生鱼类fish加兽类beast,鱼类增加受保护数据成员velocity(速度,int),公有函数成员void show(),
阅读全文
posted @ 2023-04-17 22:18 liuxuechao
阅读(17)
评论(0)
推荐(0)
编辑
公告