文件名称:cclassshape
介绍说明--下载内容来自于网络,使用问题请自行百度
声明一个基类Shape(点), 在此基础上派生出Rectangle(长方形)和Circle(圆),这三个类都有GetArea()函数计算对象的面积,构造函数,析构函数等有关函数。再使用Rectangle类创建一个派生类Square(正方形)。并设计创建各种类的对象,调用所有函数。设计函数f(Shape &a)能对不同对象的实参调用计算打印出对象的面积。
-statement a base class Shape (points) On this basis -- for Rectangle (rectangular) and Circle (Yuen), This category has three GetArea () function calculation of the area of the object, Constructors and destructor function and other functions. Rectangle re-use categories to create a derived class Square (square). Design and creation of all the different types of targets, calling all functions. Design function f (Shape
-statement a base class Shape (points) On this basis -- for Rectangle (rectangular) and Circle (Yuen), This category has three GetArea () function calculation of the area of the object, Constructors and destructor function and other functions. Rectangle re-use categories to create a derived class Square (square). Design and creation of all the different types of targets, calling all functions. Design function f (Shape
(系统自动生成,下载前可以参看下载内容)
下载文件列表
cclassshape.doc
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.