登录
首页 » Java » graphics

graphics

于 2014-05-05 发布 文件大小:2KB
0 349
下载积分: 1 下载次数: 1

代码说明:

  实验一:类与对象实验: 几何图形类的设计 实验目的:掌握用类进行面向对象程序设计的方法,掌握使用对象作为类的成员变量,掌握方法的参数传递,掌握静态域和静态方法。 实验内容:编写4个类:Rectangle、Circle、Geometry、Exa,具体要求如下: ① Rectangle类有double型成员变量表示矩形左上角的位置坐标及矩形的宽和高,要求提供修改和返回各成员变量的方法。 ② Circle类有double型成员变量表示圆心坐标和圆的半径,要求提供修改和返回各成员变量的方法。 ③ Geometry类有Rectangle类和Circle型的成员变量rect和circle。即Geometry类创建的对象由一个矩形和一个圆组合而成。要求该类提供修改rect、circle位置和大小的方法;提供显示rect和circle位置关系的方法,并能够显示圆是否完全坐落于矩形中。 ④ 要求能对创建的Rectangle类和Circle类对象数目进行统计。 Exa类含有main方法,在main方法中用Geometry类创建对象,该对象调用相应的方法 设置圆和矩形的位置及大小并输出圆是否包含在矩形中。输出当前Rectangle和Circle 对象数目。 (test one)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • parsx-achieve
    说明:  对移动通信中的多径多普勒频移进行详细的仿真,对学习这个的朋友有极大的帮助(The detailed simulation of multi-path Doppler frequency shift in mobile communication will be of great help to the friends who study this problem.)
    2019-03-27 23:45:11下载
    积分:1
  • 重叠模型,客户端和服务器
    overlapped model ,client and server
    2022-04-02 02:05:41下载
    积分:1
  • tnjv03
    易语言游戏源程码石头布剪 含源程码与及详细的分析()
    2018-01-04 15:10:57下载
    积分:1
  • zorro_ids
    convert the default codepage to Unicode.
    2015-10-20 12:15:01下载
    积分:1
  • jisuan657779
    说明:  用labview编辑的计算实验误差罗曼诺夫斯基准则的软件。(Software edited by LabVIEW to calculate experimental errors in Romanowski's criterion.)
    2021-04-08 23:19:00下载
    积分:1
  • 第4章:聚合函数
    整理了SQL基础部分的知识点,涵盖了系统函数,聚合函数再加上小例子(SQL SERVER study,You can study this by SQL document)
    2020-06-24 03:00:02下载
    积分:1
  • motor
    说明:  介绍了一种基于仿真软件PROTEUS的单片机步进电机控制系统的仿真应用。整个系 统以AT89C51单片机为控制核心,利用单片机自身的定时中断、I/U输出,并与一些外围器件等有机结合起来,实现采用按键对步进电机的连续调速、实时控制与显示步进电机工作方式等功能。同时,采用C语言进行系统的软件编程,并在PROTEUS环境下通过了仿真验证。(A simulation application of stepping motor control system based on PROTEUS is introduced. Whole Department With AT89C51 as the control core, the system uses the timing interruption and I/U output of the single chip computer itself, and combines with some peripheral devices to realize the functions of continuous speed regulation, real-time control and display of the working mode of the stepper motor by using keys. At the same time, C language is used to program the software of the system, and it has passed the simulation verification under the environment of PROTEUS.)
    2019-06-27 20:43:52下载
    积分:1
  • SVMfly
    说明:  利用SVM对仿真的飞行数据进行训练和预测。(SVM is used to train and predict the simulated flight data)
    2020-12-28 15:32:57下载
    积分:1
  • attack_wmk
    说明:  各种水印攻击实验,包含了大部分的操作,例如压缩,剪切,旋转等(various experimental watermark attacks, including most of the operations, such as compression, shear, rotate, etc.)
    2005-11-15 18:16:08下载
    积分:1
  • randplusminus1
    This gives the generation of random integer.
    2014-12-27 19:29:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载