搜索资源列表
jichen
- 继承与派生 内容:定义一个点类,包含X,Y的坐标数据成员,显示函数和计算面积的函数成员;以点为基类派生一个圆类,增加表示半径的数据成员,重载显示和计算面积的函数;定义一个直线类,以两个点类对象作数据成员,定义显示、求面积及长度函数。 -inheritance and derived elements : a definition point category, including X, Y coordinates of the
jichen
- -调用基类myarray创建数组 调用派生类averarray求平均数 调用派生类revarray求反序数组
jichen
- 有一个基类,然后几个类继承此类,实现一些功能,便于大家理解继承的概念!
jichen
- 继承与派生 内容:定义一个点类,包含X,Y的坐标数据成员,显示函数和计算面积的函数成员;以点为基类派生一个圆类,增加表示半径的数据成员,重载显示和计算面积的函数;定义一个直线类,以两个点类对象作数据成员,定义显示、求面积及长度函数。 -inheritance and derived elements : a definition point category, including X, Y coordinates of the
jichen
- -调用基类myarray创建数组 调用派生类averarray求平均数 调用派生类revarray求反序数组 -- Call the base class to create an array called myarray derived class averarray for the average derived class to call for anti-revarray sequence array
jichen
- 有一个基类,然后几个类继承此类,实现一些功能,便于大家理解继承的概念!-Have a base class, and then several types of inheritance such, the realization of some functional, easy to understand the succession of the concept of everyone!