文件名称:cclasspoint
介绍说明--下载内容均来自于网络,请自行研究使用
首先定义一个点类Point,其私有成员为其坐标X,Y。设计构造函数,拷贝构造函数,析构函数(可以什么都不做,只打印信息,表示其被调用),设置新值函数Set, 打印成员值函数Print。再定义一个线类Line,线类是在公有继承点类的基础上,新增私有成员斜率S,并设计构造函数,拷贝构造函数,析构函数(可以什么都不做,只打印信息,表示其被调用),设置新值函数Set, 打印成员值函数Print以及其它你认为对访问此Line类对象有用的成员函数。并用此Line类定义对象,调用所有成员函数。尤其是考察构造函数的调用顺序。-definition of a first spots Point, for its private members coordinates X, Y. Design Constructors, the copy constructor and destructor function (nothing can be done only print information that his was called), A new function Set, members of Print Print function. Further definition of a linear Line, the line is the successor in public spots, on the basis of the new private members slope S, Construction and design function, the copy constructor and destructor function (nothing can be done only print information, said its was called), set up the new function Set, Print Print function members and other right that you visit this category Line useful members of object function. Line and use this definition of object type, called all the members function. In particular function is to investigate t
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 1985513cclasspoint.rar 列表 class point.doc