登录
首页 » Java » graphics

graphics

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

  • libpcap
    基于libpcap的网络封包截获程序。-libpcap-based network packet interception procedures.
    2023-06-13 09:55:19下载
    积分:1
  • mgh_com-vue2-elm-master
    java实现的克里金插值算法。算法实现中使用Jama.Matrix包来做矩阵操作。算法简洁明了。 希望能帮到你。(Kriging interpolation algorithm to achieve the java. Jama.Matrix packets are used to do matrix operations in the algorithm implementation. The algorithm is concise and clear. Hope to help you.)
    2017-12-12 13:51:50下载
    积分:1
  • FTool
    使用MFC技术演示了如何安装和加载驱动,驱动代码在另外一个上传文件中(Using MFC technology to demonstrate how to install and load drivers)
    2019-03-08 10:46:57下载
    积分:1
  • javase01
    javase的第一个练习,对于初学者很有参考价值。(javase first exec, it is useful for fresh)
    2014-03-02 16:11:56下载
    积分:1
  • lenet-mnist-master
    说明:  使用Lenet网络对手写数字进行识别,识别效果比较好(Recognition of handwritten numerals by using Lenet network has better recognition effect.)
    2019-07-05 16:37:11下载
    积分:1
  • Gaot
    如果定时器的精度影响到你的程序质量,可以下载此源码,多媒体定时器的精度可以达到1ms。定时期间,不会阻塞程序。(If the timer accuracy affects the quality of your program, you can download the source code, multimedia timer accuracy can achieve 1ms. From time to time during the procedure will not cause blockage.)
    2008-01-26 11:01:44下载
    积分:1
  • Download
    download a file internet
    2015-08-28 09:12:14下载
    积分:1
  • contour
    c#等值线生成程序,自动划分三角形网格,生成等值线、等值面,生成shape文件。(c# contour generating program, divided into triangular mesh automatically generate contours, isosurfaces, generate shape files.)
    2021-04-14 10:48:56下载
    积分:1
  • vchelp
    vc 的chm格式帮助文件,拥有全面的函数解释,能够很方便的找到所需要的函数说明(help file vc chm format, has a comprehensive interpretation of the function to be able to easily find the needed function description)
    2012-10-08 22:08:04下载
    积分:1
  • NB僵尸源码,可直接译,服务端使用时修改成本地上线即可
    NB僵尸源码,可直接编译,服务端使用时修改成本地上线即可-NB zombie source can be directly compiled, server-side use can modify the cost of the ground line
    2022-06-19 23:22:20下载
    积分:1
  • 696516资源总数
  • 106457会员总数
  • 15今日下载