登录
首页 » Java » graphics

graphics

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

  • 疯狂坦克
    自己联系所写的坦克大战,非常简陋,但是可以借鉴参考一下(The battle of the tank that he created)
    2018-08-08 10:43:08下载
    积分:1
  • 聊天室序,通过socket实现,可以进行简单的交互,这个是客户端序...
    聊天室程序,通过socket实现,可以进行简单的交互,这个是客户端程序-chat room
    2023-01-03 09:55:04下载
    积分:1
  • 几只游动的金鱼和网页页面经常碰见的小水滴,很漂亮哦,供初学者参考...
    几只游动的金鱼和网页页面经常碰见的小水滴,很漂亮哦,供初学者参考-handful of goldfish swimming and Web pages often met with a small drop of water, and very pretty, oh reference for beginners
    2022-02-04 00:14:40下载
    积分:1
  • CodeSigner
    CodeSigner implements Serializable Source Code for Andriod.
    2014-01-13 12:18:58下载
    积分:1
  • tongxunlu
    让你更好理解C++的基本内容与间接提高,并且深入领会(Make you a better understanding of C++, and indirectly enhance the basic content and in-depth understanding of)
    2011-06-06 16:52:37下载
    积分:1
  • ARP_RARP
    Java source code for Address Resolution Protocol and Reverse Address Resolution Protocol Implementation
    2009-10-09 12:47:52下载
    积分:1
  • tcp ip messager
    说明:  labview实现tcp/ip通讯,调试很久的的代码,简单可用(Realization of TCP / IP communication with LabVIEW)
    2020-01-03 09:06:41下载
    积分:1
  • chapt3_08
    组合数学,又称为离散数学,但有时人们也把组合数学和图论加在一起算成是离散数学。组合数学是计算机出现以后迅速发展起来的一门数学分支。计算机科学就是算法的科学,而计算机所处理的对象是离散的数据,所以离散对象的处理就成了计算机科学的核心,而研究离散对象的科学恰恰就是组合数学。组合数学的发展改变了传统数学中分析和代数占统治地位的局面(Combinatorial mathematics, also known as discrete math, but sometimes people put combinatorial mathematics and graph theory together are counted as discrete mathematics. Combinatorial mathematics are beyond the rapid development of computers with a branch of mathematics. Computer Science is the scientific method, and computer objects are handled by discrete data, so deal with discrete objects has become the core of computer science, and the study of discrete objects is precisely the combination of science and math. The development of combinatorial mathematics has changed the traditional analysis of math and algebra dominant situation)
    2009-03-11 20:24:49下载
    积分:1
  • DanceMidlet
    手机上的跳舞机程序,包含内容DanceMidlet.java,ArrowSprite.java,MainCanvas.java(跳舞机procedures on the phone, including content DanceMidlet.java, ArrowSprite.java, MainCanvas.java)
    2020-10-21 09:27:23下载
    积分:1
  • VC写的IRC客户端演示
    VC编写的IRC客户端演示-VC prepared by the IRC client demonstration
    2022-01-22 03:50:21下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载