登录
首页 » Java » graphics

graphics

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

  • InjectLibrary64
    WIN7 64位下 32位注入64位DLL程序(WIN7 64 bit The following 32 64 DLL injection procedure)
    2015-01-07 16:59:36下载
    积分:1
  • 新建文件夹
    说明:  分别采用Roberts?算子、Sobel算子、Prewitt算子和Log算子进行图像锐化(Roberts operator, Sobel operator, Prewitt operator and LOG operator are used for image sharpening)
    2020-12-17 11:36:12下载
    积分:1
  • jsp
    流量统计,利用计时器的计时功能,统计流量,利用jsp实现,数据库采用sqlserver实现(Traffic statistics, use the timer function of time, traffic statistics, use jsp to achieve, the realization of the database using sqlserver)
    2009-05-11 12:09:32下载
    积分:1
  • C#高德地图经纬度解析地址
    c#编程中解析高德地图经纬度的解析地址源码(C# Programming to Resolve the Resolution Address Source Code of Longitude and Latitude of Gaode Map)
    2020-06-22 08:00:01下载
    积分:1
  • PICMANAGER
    JAVA ME写的图片管理程序,实现管理本机图片,可在部分高端手机上实现(JAVA ME write image management process to achieve management of the machine image can be realized in some high-end mobile phones)
    2010-06-02 15:39:56下载
    积分:1
  • jiaozhiliudianlixitongfenxi
    交直流电力系统动态分析,徐政,对柔性直流输电研究有帮助(Dynamic behavior analysis of AC/DC power system,xuzheng,can be used to study VSC-HVDC)
    2016-01-26 10:01:41下载
    积分:1
  • semisup_rankboost
    一种半监督的rankboost算法实现,有训练集,测试集,可以直接运行。(An rankboost semi-supervised algorithm implementation, there is a training set, the test set can be run directly.)
    2014-05-29 16:46:14下载
    积分:1
  • shapirowilkmath
    夏皮罗-威尔克shapiro-wilk 检验数据正态性。包含了夏皮罗-威尔克表,及实现代码(shapiro-wilk test method.include shapiro-wilk table and C++ source code )
    2015-12-24 17:14:55下载
    积分:1
  • alpha
    基于C语言的Alpha稳定分布随机信号的产生方法。独一无二的源程序。(C language based on Alpha stable distribution, the method of random signals. Unique source.)
    2020-11-18 17:19:38下载
    积分:1
  • 获取密码的一个简单代码,虽然简单,但很不错的哦!推荐大家下下来研究研究!...
    获取密码的一个简单代码,虽然简单,但很不错的哦!推荐大家下下来研究研究!-Password access to a simple code, though simple, but very good Oh! Recommend you look down under!
    2022-08-06 09:35:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载