登录
首页 » Java » java

java

于 2011-11-15 发布 文件大小:4KB
0 177
下载积分: 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 个回复

  • FileUploadServlet
    这是http文件传输代码,用java语言编写,工程文件(The file transmission code through http )
    2013-09-22 15:37:21下载
    积分:1
  • DR2
    美国空军标准的飞行器气动计算软件DATCOM的可视化版本,使用更加方便!(A software with GUI, which can be used to calculate aerodynamic characteristics of a aircraft!)
    2020-07-03 14:20:01下载
    积分:1
  • QuicSort
    显示一个应用界面,可以对数字进行快速排序,并显示交换次数(Digital display the interface of an application, quick sort, and display the number of exchanges)
    2012-12-30 19:56:57下载
    积分:1
  • KeyguardViewMediator
    Low level access to the power manager for enableUserActivity.
    2014-02-17 13:22:12下载
    积分:1
  • extendsName
    借助JavaBean实现在页面上显示指定目录下的文件。(With JavaBean to display the files in the specified directory page)
    2012-10-22 11:16:15下载
    积分:1
  • socket_program
    实现socket客户端向服务器单向通信,并借助窗体进行输入数据。(One-way communication to achieve socket client to the server, and with the form input data.)
    2014-06-01 12:39:18下载
    积分:1
  • PictureInfor_code
    java开发规范,包含了前台、后台的开发规范,详细说明了开发过程中应该注意的地方。(Java development specification, including the front, backstage development specification, detailed description of the development process should be paid attention to.)
    2018-01-09 09:47:03下载
    积分:1
  • JEECMS
    很好的一个内容管理器的文档,能够帮助你理解JEECMS。(Good documentation of a content management can help you understand JEECMS.)
    2012-11-26 18:42:57下载
    积分:1
  • Ubuntu12.10 菜鸟使用手册(二)
    说明:  对于刚刚步入 Linux 的菜鸟来说, 难免要有时利用一下 的资源,(For newcomers who have just entered Linux, it is unavoidable to make use of some resources at times.)
    2019-05-07 23:25:35下载
    积分:1
  • smthbbs-1.2.1.tar
    清华BBS源代码,希望大家喜欢(Tsinghua BBS source code, hope you like)
    2005-01-16 20:09:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载