登录
首页 » Java » graphics

graphics

于 2014-05-05 发布 文件大小:2KB
0 322
下载积分: 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 个回复

  • Programming-in-Visual-Basic-2008
    visual basic programming textbook
    2012-05-23 12:24:56下载
    积分:1
  • BPF
    matlab 使用傅里叶变换投影反投影sheep-logon(matlab Sheep-logon Projection Back Projection Using Fourier Transform)
    2019-06-05 00:13:07下载
    积分:1
  • DVB-T2_Handbook
    The DVB-T standard is the most successful digital terrestrial television standards in the world. First published in 1995, it has been adopted by more than half of all countries in the world. Since the publication of the DVB-T standard, however, research in transmission technology has continued, and new options for modulating and error-protecting broadcast steams have been developed. Simultaneously, the demand for broadcasting frequency spectrum has increased as has the pressure to release broadcast spectrum for non-broadcast applications, making it is ever more necessary to maximise spectrum efficiency.
    2013-11-28 23:10:22下载
    积分:1
  • Desktop
    these files contain source codes and document related to rayleigh fading
    2009-09-11 13:38:30下载
    积分:1
  • CrayonBallDemo
    采用了cocos2d和chipmunk的DEMOCrayonBallDemo,精选ios编程学习源码,很好的参考资料。(Using cocos2d and chipmunk DEMOCrayonBallDemo, select learning IOS programming source code, a good reference.)
    2013-12-13 12:46:41下载
    积分:1
  • enumeration
    This project is the techniques that represent the ennumeration technique completely based on java technology
    2013-11-20 13:52:11下载
    积分:1
  • apache-tomcat-7.0.57
    apache-tomcat-7.0.57
    2020-06-20 19:40:02下载
    积分:1
  • com
    eclipse rcp demo。eclipse rcp demo。eclipse rcp demo。
    2015-04-16 12:55:14下载
    积分:1
  • 1
    说明:  this document may be good for you, finding detecting object
    2011-04-02 10:36:44下载
    积分:1
  • SiteSelector
    Java入门级源码...自个儿写的...还望指正(Entry-level Java source ... myself ... I do hope to write correction)
    2010-05-19 10:31:28下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载