登录
首页 » Java » graphics

graphics

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

  • 使用select socket io模型传文件,一次3K
    使用select socket io模型传文件,一次3K-The use of select socket io model Chuan documents, a 3K
    2023-07-04 11:55:04下载
    积分:1
  • CScheduledTask_demo
    使用Windows上的计划任务的程序(The example of using the plan task in the Windows)
    2021-04-15 22:28:54下载
    积分:1
  • InfoManage
    采用的Java Web设计,开发平台Java和软件架构C/S 就是简单的MVC设计模式+Jsp+Servlet,使用软件Myeclipse + Tomcat + Mysql + Java 由于花费一天时间写Html和代码实现,就没怎么太高要求,能用下就可以了希望可以通过, 就没实现导入的功能,其余功能完全(Using Java Web design, development platforms Java and software architecture C/S is a simple MVC design pattern+Jsp+Servlet, using software Myeclipse+ Tomcat+ Mysql+ Java Html due to spend a day and write code, there is no how high requirements, can hope you can use the following can be, there is no import function to achieve the remaining fully functional)
    2013-11-22 19:59:40下载
    积分:1
  • 基于TCP的协议分析,分析引擎为WINPCAP,这个主用用来分析HTTP
    基于TCP的协议分析,分析引擎为WINPCAP,这个主用用来分析HTTP-based on the TCP protocol analysis, analysis of WINPCAP engine, the main use to analyze HTTP
    2022-01-24 14:18:01下载
    积分:1
  • ExecSQL
    java从文本文件中读取并执行SQL语句的示范。(java from text documents to read and implement SQL model.)
    2007-04-23 17:25:16下载
    积分:1
  • AntiVAAAAAnAwareness
    处理各种杀软查杀的库,主要反杀软的虚拟机查杀和智能查杀!(Deal with soft kill killing the library, the main anti-kill killing soft and intelligent killing virtual machine!)
    2011-01-02 20:28:24下载
    积分:1
  • PVarray_Grid_IncCondReg_det1
    基于matlab,通过MPPT控制实现光伏逆变(Based on matlab, realize photovoltaic inversion by MPPT control)
    2020-06-25 17:40:02下载
    积分:1
  • RobotDoctor - 基于知识图谱的智能医疗诊断系统
    说明:  信息科技经过 60 余年的发展,已经普及到社会生活的每一个角落。随着信息技术在国家治理、经济运行的方方面面的应用,大量的数据随之产生。而互联网技术的爆发式发展使得近年来产生的数据总量超过了人类以往产生的历史数据的总和,医疗行业的数据增长幅度尤为突出。 医疗大数据具有巨大的价值,尤其是在临床辅助诊疗和健康管理方面。医疗大数据已经上升到国家战略,同时也是全球学术界与产业界竞争的研究热点。如何利用这些医疗数据,挖掘数据的深层价值,是未来信息科技发展的趋势,也是医疗大数据技术产生的背景。(After more than 60 years of development, information technology has spread to every corner of social life. With the application of information technology in all aspects of national governance and economic operation, a large number of data are generated. The explosive development of Internet technology has made the total amount of data generated in recent years exceed the total amount of historical data generated by human beings in the past, and the growth rate of data in the medical industry is particularly prominent. Big medical data have great value, especially in clinical assistant diagnosis and health management. Big medical data has risen to national strategy, and it is also a research hotspot in the competition between global academia and industry. How to use these medical data to excavate the deep value of the data is the trend of the development of information technology in the future, and also the background of the emergence of medical big data technology.)
    2019-03-11 16:38:21下载
    积分:1
  • VBFTP源码
    基于VB下的FTP源码,可以实现文件的下载和上传(FTP source code based on VB can download and upload files.)
    2020-06-19 06:00:01下载
    积分:1
  • 文件目录资源列表生成器 FileResTool2.0
    文件目录资源列表生成器,QQ:403717(File directory of resources list of generators, QQ: 403717)
    2020-06-26 02:20:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载