登录
首页 » Java » graphics

graphics

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

  • 21
    good codes for JavaWeb study. include JSP JavaScript CSS. the 21.zip is a project about ninegrid web,really beautiful and easy study for beginner.
    2014-02-27 14:25:54下载
    积分:1
  • day0905qq
    SWING编写的仿QQ小程序,客户端与服务器端相互通信,收发文件,提示上线下线(SWING prepared by imitation QQ small procedures, client and server-side communication, send and receive documents, suggesting that the line off the assembly line)
    2017-04-14 10:38:35下载
    积分:1
  • mempool102
    一个简单的内存池实现算法,使用C++实现,使用VC6.0可以正常编译通过。(A simple memory pool algorithm, using C++ implementation by using VC6.0 to compile correctly.)
    2016-05-02 14:00:28下载
    积分:1
  • 一个使用socket传输文件的实例,包含最基础的socket使用方法,初学者适用。...
    一个使用socket传输文件的实例,包含最基础的socket使用方法,初学者适用。-a socket to transfer files using examples include the most basic use of the socket, beginners apply.
    2022-02-05 12:34:13下载
    积分:1
  • Download:网页下载工具 用来通过HTTP协议下载的序,支持断点续传和多线下载。 注意,该序一次只能下载一个任务,那个列表虽然可以拉很多进去,不过是...
    Download:网页下载工具 用来通过HTTP协议下载的程序,支持断点续传和多线程下载。 注意,该程序一次只能下载一个任务,那个列表虽然可以拉很多进去,不过是摆设。-Download : website tools to the adoption of the HTTP protocol to download procedures, support HTTP download and multithreading. Note that this procedure can only be downloaded once a task that although the list can pull into the lot, but yes display.
    2022-07-12 02:15:43下载
    积分:1
  • Windows网络的详细教,PDF
    有关windows网络编程技术的详细pdf教程-Windows network programming on a detailed tutorial pdf
    2023-02-20 10:25:05下载
    积分:1
  • office
    北大青鸟第三单元项目 北大青鸟办公系统 ssh(Beida Jade Bird third unit Beida Jade Bird project office systems)
    2014-03-03 20:20:57下载
    积分:1
  • fccCode-practice-master
    说明:  运用最新的SpringBoot2.0以上版本和SpringCloud各大组建以及SpringcCloud-Alibaba 的Nacos,Seata,Sentinel等组件整合成的大型项目(It is a large-scale project integrated with the latest version of spring boot 2.0 or above, the major components of spring cloud, and the components of Nacos, Seata, sentinel of spring cloud Alibaba)
    2021-03-14 19:12:38下载
    积分:1
  • SE2004Volume
    software engineer development
    2010-05-26 23:50:31下载
    积分:1
  • 激光键盘软件源代码译和修改指南源代码1
    说明:  激光键盘软件源代码编译和修改指南源代码1(Laser keyboard software source code compilation and modification Guide source code 1)
    2020-10-30 20:19:55下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载