-
graphics
实验一:类与对象实验: 几何图形类的设计
实验目的:掌握用类进行面向对象程序设计的方法,掌握使用对象作为类的成员变量,掌握方法的参数传递,掌握静态域和静态方法。
实验内容:编写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)
- 2014-05-05 08:37:25下载
- 积分:1
-
jfreechart-1.0.3
jfreechart的官方源码,他的强大只有用过的人才知道,供大家学习(jfreechart official source, only used his powerful talent to know, for them to learn)
- 2013-01-05 22:40:09下载
- 积分:1
-
StudyOnline
网上购书的主页面代码,实现总体浏览功能,具体实现没有给出.呵呵.(Online book code of the page, realize the overall browsing, did not give a concrete realization. Ha ha.)
- 2008-05-11 14:01:01下载
- 积分:1
-
myProduct
在STRUTS和SPRING整合框架下开发的一个商品管理模块,供学习框架的初学者参考(Integration of STRUTS and SPRING in the framework of the development of a product management module for beginners learning framework reference)
- 2010-05-15 23:23:30下载
- 积分:1
-
Server-Component-1
关于远程调用对象以及EJB的三种类型session bean的运用的实例,十分贴切教材。代码详细正确,运用eclipse luna和jboss6.4.0-eap(Three types of remote invocation object and the EJB session bean using instance, quite proper teaching materials.Detailed correct code, using the eclipse luna and jboss6.4.0- eap)
- 2015-03-25 16:16:38下载
- 积分:1
-
Java_String.format
Java中String.format的用法(String.format usage in Java)
- 2013-11-21 11:27:25下载
- 积分:1
-
iemlementation
由java实现的分子量分解算法,可对一个给定的整数(By the molecular weight of the Java implementation decomposition algorithm, it can be for a given integer)
- 2017-05-30 09:41:17下载
- 积分:1
-
MN1994-GrainOnlineEducation_Parent-master
说明: 谷粒学院后台接口,谷粒学院是一个B2C模式的职业技能在线教育系统,分为前台用户系统和后台运营平台(Cereal college background interface, cereal college is a B2C mode of vocational skills online education system, divided into the foreground user system and background operation platform)
- 2021-03-14 14:38:34下载
- 积分:1
-
Hive
Hive 源码吧,官方下 载。(Hive Open source, download from official website)
- 2018-05-09 09:24:05下载
- 积分:1
-
MVC开发实例
基于mvc模式的java开发实例
- 2014-09-30下载
- 积分:1