摘要: 一、编写动物类animal,受保护数据成员name(名称、,string),age(年龄,int),公有函数成员void show(),输出“Animal,名称,年龄";公有派生鱼类fish加兽类beast,鱼类增加受保护数据成员velocity(速度,int),公有函数成员void show(), 阅读全文
posted @ 2023-04-17 22:18 liuxuechao 阅读(17) 评论(0) 推荐(0) 编辑