文件名称:danjichen
介绍说明--下载内容来自于网络,使用问题请自行百度
设计一个单基继承的类层次程序,利用Person类派生出Student类,增加属性xh(学号),Person类中至少有姓名、年龄等数据成员,成员函数中构造函数对其初始化,析构函数释放相应存储单元,输出函数输出其数据成员的值,其它成员函数根据需要添加,在主函数中进行测试-Design of a single base class inheritance hierarchy procedure, use the Person class derived Student class, increase the property xh (Student ID), Person class has at least the name, age and other data members, member functions the constructor initializes it, destructors release the corresponding memory cell, the output function output value of its data members, other member functions added as needed, for testing in the main function
(系统自动生成,下载前可以参看下载内容)
下载文件列表
danjichen.docx
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.