文件名称:shiyan14_chy
-
所属分类:
- 标签属性:
- 上传时间:2013-05-07
-
文件大小:1.98kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1.编写程序,对实验13中的老师类增加上课方法;
2.编写程序,对实验13中的学生类增加上课方法;
3.编写程序,把老师类和学生类的上课方法抽象到人类中成为虚函数:
4.编写程序,用父类指针来实现动态多态的调用;
5.编写程序,抽象一个上课的抽象类,此类只有一个上课的纯虚成员函数,然后将上课方法从人类中剥离出去,然后让老师类和学生类都同时继承人类和上课抽象类,并修改相关代码;并思考这样做的好处;
-1. Write a program, the experimental teacher class adding method of 13
2. Write a program to 13 students in the experimental class adding method
3. Write a program, the teachers and students class methods abstract class to become a virtual function in humans:
4. Write a program, a parent class pointer is used to realize dynamic polymorphism calling
5. Write a program to abstract a abstract class in class, this is only a pure virtual class member functions, and then spun off from humanity class methods, and then let the teachers and students class inherits both the human and the abstract class, in class and modify the relevant code And think about the benefits
2.编写程序,对实验13中的学生类增加上课方法;
3.编写程序,把老师类和学生类的上课方法抽象到人类中成为虚函数:
4.编写程序,用父类指针来实现动态多态的调用;
5.编写程序,抽象一个上课的抽象类,此类只有一个上课的纯虚成员函数,然后将上课方法从人类中剥离出去,然后让老师类和学生类都同时继承人类和上课抽象类,并修改相关代码;并思考这样做的好处;
-1. Write a program, the experimental teacher class adding method of 13
2. Write a program to 13 students in the experimental class adding method
3. Write a program, the teachers and students class methods abstract class to become a virtual function in humans:
4. Write a program, a parent class pointer is used to realize dynamic polymorphism calling
5. Write a program to abstract a abstract class in class, this is only a pure virtual class member functions, and then spun off from humanity class methods, and then let the teachers and students class inherits both the human and the abstract class, in class and modify the relevant code And think about the benefits
(系统自动生成,下载前可以参看下载内容)
下载文件列表
shiyan14_chy.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.