登录
首页 » Java » java

java

于 2011-11-15 发布 文件大小:4KB
0 173
下载积分: 1 下载次数: 3

代码说明:

  修改实验7中定义的Rectangle类,使之拥有两个构造方法。其中一个是默认的,它使两点的坐标都为(0,0) 另一个带有4个参数,求出左上角和右下角点坐标为(2.1,3.2)、(5.2,6.3)的矩形的周长及面积,再利用带参数的构造方法创建Rectangle对象,求出左上角和右下角点坐标为(1,2)、(6.8,10.5)的矩形的周长及面积.(Modify the definition of experiment 7 Rectangle class, so that it has two constructors. One is the default, it makes two points of the coordinate of (0,0) the other with four parameters, find the upper left and lower right corner coordinates (2.1,3.2), (5.2,6.3) and perimeter and area of ​ ​ a rectangle, and then use a parameterized constructor method to create a Rectangle object, find the upper left and lower right corner coordinates (1,2), (6.8,10.5) rectangle of perimeter and area.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • MavenSpringHibernate-MySQL
    Maven Spring + Hibernate example
    2013-04-14 02:52:03下载
    积分:1
  • java_program_111
    java 初学者学习实例,对java感兴趣者可以当作自学阅读,代码都通过(java beginners learning example, the java interested persons can be used as self-learning reading, code adopted)
    2006-10-29 16:22:06下载
    积分:1
  • lk1
    说明:  java的swing的详细解释,很有用的,希望对大家有帮助。(java detailed explanation of the swing, very useful, I hope all of you help.)
    2008-10-29 13:48:17下载
    积分:1
  • kMeans
    基于原型的目标函数聚类方法,数据点到原型的某种距离作为优化的目标函数,利用函数求极值的方法得到迭代运算的调整规则(A prototype based objective function clustering method, the data point to a certain distance from the prototype is used as the objective function of the optimization, and the adjustment rule of the iterative operation is obtained by the method of finding the extremum of the function.)
    2018-05-18 15:17:50下载
    积分:1
  • Abstract
    THIS IS IMP FILE......................................................................
    2013-12-09 16:18:25下载
    积分:1
  • HR
    人事综合管理系统 非web开发 仅供学习参考(Personnel management system non-web reference for the study)
    2013-04-27 16:10:23下载
    积分:1
  • DTMDefaultBaseIterators
    This class implements the traversers for DTMDefaultBase.
    2014-02-27 15:34:38下载
    积分:1
  • Java---lessons
    一本比较简单的java入门教程,为初学java的便宜提供了一个比较低的门槛(A relatively simple java introductory tutorial provides a low threshold for beginner java cheaper)
    2012-12-30 16:49:58下载
    积分:1
  • Javawebservicesoap
    Java调用获取手机归属地服务SOAP1.2方式(Java call services for mobile phone ownership way SOAP1.2)
    2013-07-25 08:32:37下载
    积分:1
  • websqlcliet_FILES
    web client....work for like the client server program using webservice concepts
    2015-05-27 08:20:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载