Location:
Search - jichen
Search list
Description: 继承与派生
内容:定义一个点类,包含X,Y的坐标数据成员,显示函数和计算面积的函数成员;以点为基类派生一个圆类,增加表示半径的数据成员,重载显示和计算面积的函数;定义一个直线类,以两个点类对象作数据成员,定义显示、求面积及长度函数。
-inheritance and derived elements : a definition point category, including X, Y coordinates of the data, calculations show function and the function area; point to the base class for a round like derivatives, the increase in the radius of the data, Heavy display and calculation of the area of function; definition of a linear type, points to two categories of data objects, definitions, seeking size and length function.
Platform: |
Size: 13481 |
Author: 赖雪霞 |
Hits:
Description: -调用基类myarray创建数组
调用派生类averarray求平均数
调用派生类revarray求反序数组
Platform: |
Size: 1036 |
Author: rtrt |
Hits:
Description: 有一个基类,然后几个类继承此类,实现一些功能,便于大家理解继承的概念!
Platform: |
Size: 4565 |
Author: 盼盼 |
Hits:
Description: 继承与派生
内容:定义一个点类,包含X,Y的坐标数据成员,显示函数和计算面积的函数成员;以点为基类派生一个圆类,增加表示半径的数据成员,重载显示和计算面积的函数;定义一个直线类,以两个点类对象作数据成员,定义显示、求面积及长度函数。
-inheritance and derived elements : a definition point category, including X, Y coordinates of the data, calculations show function and the function area; point to the base class for a round like derivatives, the increase in the radius of the data, Heavy display and calculation of the area of function; definition of a linear type, points to two categories of data objects, definitions, seeking size and length function.
Platform: |
Size: 13312 |
Author: 赖雪霞 |
Hits:
Description: -调用基类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
Platform: |
Size: 1024 |
Author: rtrt |
Hits:
Description: 有一个基类,然后几个类继承此类,实现一些功能,便于大家理解继承的概念!-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!
Platform: |
Size: 4096 |
Author: 盼盼 |
Hits: