登录
首页 » Java » graphics

graphics

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

  • 765808
    strut2框架关于验证的使用方法,不错的源代码,学习不错(Strut2 framework on the use of validation, good source code, good learning)
    2018-09-16 07:15:27下载
    积分:1
  • gongziguangli
    可以实现对工资的智能化的管理,效率高,错误少,方便快捷(Wage can be achieved on the management of intelligent, high efficiency, less errors, convenient and quick)
    2009-04-30 09:24:27下载
    积分:1
  • 220-classic-C-program-source-code
    本文件夹中含有220个经典C程序源码,是学习C语言难得的好资料!(220 classic C program source code)
    2013-12-28 00:00:05下载
    积分:1
  • 电力电子授课实验matlab
    电力电子技术课程中的几个重要的matlab仿真程序,包括:单相全桥整流电路,三相全桥整流电路,十二脉波整流电路,PWM逆变电路等。对于学习电力电子技术课程十分有帮助。(Several important matlab simulation programs in the course of power electronics include single-phase full bridge rectifier circuit, three-phase full bridge rectifier circuit, twelve-pulse rectifier circuit, PWM inverter circuit, etc. It is very helpful for studying the course of power electronics.)
    2018-10-18 11:28:24下载
    积分:1
  • aodv Routing Protocol
    aodv路由协议-aodv Routing Protocol
    2022-08-09 02:53:58下载
    积分:1
  • Delphi.Distiller.v1.76
    1. WHAT IS DELPHI DISTILLER Delphi Distiller is a customization tool for Delphi 5/6/7/2006/2007/2009/2010 that allows you manage packages and experts and apply several tweaks. 2. FEATURES • Choose what packages and experts are loaded by Delphi 5/6/7/2006/2007/2009/2010. • Downloads page for Delphi 5/6/7/2006/2007/2009/2010. • File associations manager for Delphi 5/6/7/2006/2007/2009/2010.
    2020-06-25 22:40:02下载
    积分:1
  • 4564
    BP neural network function fitting and pattern recognition, Can be widely used in data analysis and forecast data, Simulation of the effect is very good.
    2017-11-01 19:36:23下载
    积分:1
  • wrelax_pri_test
    说明:  基于wrelax多路径高分辨时延估计算法的MATLAB编程实现(MATLAB programming implementation of wrelax-based multi-path high resolution time delay estimation algorithm)
    2019-07-04 09:44:48下载
    积分:1
  • 序描述了网络开发过中,线池的开发、使用
    程序描述了网络开发过程中,线程池的开发、使用-Procedure describes the network development process, the thread pool of the development, use
    2022-01-31 15:59:25下载
    积分:1
  • make_Histogram_with_excel2010
    用excel2010表画直方图,文档里面有详细的说明步骤(Making Higtogram with excel 2010)
    2015-01-23 20:26:46下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载