文件名称:exa
-
所属分类:
- 标签属性:
- 上传时间:2014-04-15
-
文件大小:795byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
① Rectangle类有double型成员变量表示矩形左上角的位置坐标及矩形的宽和高,要求提供修改和返回各成员变量的方法。
② Circle类有double型成员变量表示圆心坐标和圆的半径,要求提供修改和返回各成员变量的方法。
③ Geometry类有Rectangle类和Circle型的成员变量rect和circle。即Geometry类创建的对象由一个矩形和一个圆组合而成。要求该类提供修改rect、circle位置和大小的方法;提供显示rect和circle位置关系的方法,并能够显示圆是否完全坐落于矩形中。
④ 要求能对创建的Rectangle类和Circle类对象数目进行统计。
Exa类含有main方法,在main方法中用Geometry类创建对象,该对象调用相应的方法
设置圆和矩形的位置及大小并输出圆是否包含在矩形中。输出当前Rectangle和Circle
对象数目。
-① Rectangle class has a member variable of type double rectangle represents the position coordinates of the upper left corner and the width and height of the rectangle, modify the request and return the members of variables. ② Circle class has a member variable of type double, said the center coordinates and radius of the circle and ask for modifications and return each member variables. ③ Geometry class has Rectangle and Circle type class member variables rect and circle. Geometry class to create an object that is a combination of a rectangle and a circle formed. This class provides methods to modify the requirements rect, circle the location and size provide a display rect and circle the positional relationship between the method and the ability to display the circle is entirely located in the rectangle. ④ requests can Circle the number of classes and class Rectangle objects created statistics. Exa class contains a main method, main method used in Geometry class to create object tha
② Circle类有double型成员变量表示圆心坐标和圆的半径,要求提供修改和返回各成员变量的方法。
③ Geometry类有Rectangle类和Circle型的成员变量rect和circle。即Geometry类创建的对象由一个矩形和一个圆组合而成。要求该类提供修改rect、circle位置和大小的方法;提供显示rect和circle位置关系的方法,并能够显示圆是否完全坐落于矩形中。
④ 要求能对创建的Rectangle类和Circle类对象数目进行统计。
Exa类含有main方法,在main方法中用Geometry类创建对象,该对象调用相应的方法
设置圆和矩形的位置及大小并输出圆是否包含在矩形中。输出当前Rectangle和Circle
对象数目。
-① Rectangle class has a member variable of type double rectangle represents the position coordinates of the upper left corner and the width and height of the rectangle, modify the request and return the members of variables. ② Circle class has a member variable of type double, said the center coordinates and radius of the circle and ask for modifications and return each member variables. ③ Geometry class has Rectangle and Circle type class member variables rect and circle. Geometry class to create an object that is a combination of a rectangle and a circle formed. This class provides methods to modify the requirements rect, circle the location and size provide a display rect and circle the positional relationship between the method and the ability to display the circle is entirely located in the rectangle. ④ requests can Circle the number of classes and class Rectangle objects created statistics. Exa class contains a main method, main method used in Geometry class to create object tha
(系统自动生成,下载前可以参看下载内容)
下载文件列表
exa.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.