搜索资源列表
1
- 1. 定义时间类Time,给出类的成员属性及构造函数、析构函数及普通方法的定义,利用定义的类定义对象,并对对象的属性进行访问; 2. 定义一个类Point,然后定义类Point的派生类Circle,再定义Circle的派生类Cylinder; 3. 通过函数参数类型的不同实现函数重载; 4. 函数模板的定义与使用。
example2_25
- 对象做函数参数和返回值时,调用复制构造函数,构造函数和析构函数的情况。-Objects do function parameters and return values, calling the copy constructor, the constructor and destructor.