登录
首页 » Java » graphics

graphics

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

  • thumbnail
    说明:  搭建springmvc项目基本框架,用到的Jar,以及文件配置(springmvc building and user Jar files and file configuration)
    2020-06-20 18:00:01下载
    积分:1
  • 教你如何写一个聊天序(step one)
    教你如何写一个聊天程序(step one)-teach you how to write a chat program (step one)
    2022-07-24 15:32:01下载
    积分:1
  • Ubuntu12.10 菜鸟使用手册(二)
    说明:  对于刚刚步入 Linux 的菜鸟来说, 难免要有时利用一下 的资源,(For newcomers who have just entered Linux, it is unavoidable to make use of some resources at times.)
    2019-05-07 23:25:35下载
    积分:1
  • DTMException
    This class specifies an exceptional condition that occured in the DTM module.
    2013-11-19 10:06:22下载
    积分:1
  • 0087654
    给工具栏按钮设置下拉箭头,VC++编程精选学习源码,很好的参考资料。(To set the drop-down arrow button on the toolbar, select learning VC++ programming source code, a good reference.)
    2013-11-19 10:53:26下载
    积分:1
  • XWork
    轻量J2ee应用程序开发-mvc with WebWork2(Lightweight J2ee application development-mvc with WebWork2)
    2013-04-01 01:54:34下载
    积分:1
  • Java-Learning-Courseware
    可用于初学者自学java 浅显易懂 每个概念都配有相关的小程序 便于理解(It can be used for self-study Java beginners )
    2013-07-07 09:44:54下载
    积分:1
  • Animate_an940586132002
    thanks to the ImageAnimator class you can easily animate an animate gif on your form. change the gif location in code to one on your system of your choice then run the batch file to compile.
    2010-12-13 01:27:52下载
    积分:1
  • yushigongshuixitong
    监控组态软件,能实际演示运行,通过考证。 利用的北京一家公司生产力控的软件作为开发环境。(Configuration software, can actually run the demo, through research. Productive use of a Beijing company controlled software as a development environment.)
    2014-04-22 13:47:44下载
    积分:1
  • longboo-ajax
    Visual JS 在线JS编辑器 非常的COOL 在线生成网页和JS代码 自由显示。(Visual JS Online JS editor very COOL online JS code to generate Web pages and a free show.)
    2009-01-02 21:59:15下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载