登录
首页 » Java » graphics

graphics

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

  • the-cirele
    在以用鼠标键盘控制圆的运动的VC++工程程序!不错的源码(In the mouse and keyboard to control the movement of the circle of vc + + project program!)
    2017-06-24 06:49:15下载
    积分:1
  • 04_Modelsim6.5_crack
    Modelsim6.5破解与安装详解,内含应用程序及环境配置详情(Modelsim6.5 crack and installation steps)
    2016-06-19 20:58:13下载
    积分:1
  • NewTest
    遍历储存卡内所有图片,放到控件中显示。点击图片跳转到编辑页面。并做了代码优化。(Traverse all the pictures in the memory card, into the control display. Click on the picture to jump to edit pages. And do a code optimization.)
    2013-11-28 10:30:41下载
    积分:1
  • Shopping
    ssh框架实现增删改查以及购物车的实现和分页功能(SSH framework implementation questions and increase the realization of the shopping cart check and paging function)
    2012-04-23 23:02:14下载
    积分:1
  • 该代码能够实现蓝牙设备的搜索,根据搜索到的蓝牙地址,实现配对,连接。...
    该代码能够实现蓝牙设备的搜索,根据搜索到的蓝牙地址,实现配对,连接。-The code enables Bluetooth devices to search, according to search for Bluetooth address, to achieve matching, connection.
    2022-01-25 23:19:03下载
    积分:1
  • A good example of the completion of the port, combined with the MFC. Suitable fo...
    一个很好的完成端口的例子,结合了MFC。适合很多人学习难掌握的IOCP-A good example of the completion of the port, combined with the MFC. Suitable for many people to study hard to master the IOCP
    2022-04-17 02:59:21下载
    积分:1
  • awesome-for-beginners-master
    说明:  A list of awesome beginners-friendly projects.
    2020-06-24 22:40:01下载
    积分:1
  • synchronization socket client
    同步套接字客户端-synchronization socket client
    2023-06-17 10:25:03下载
    积分:1
  • This a remarkably agreement Network engines, including two parts : a server used...
    这是一个Tcp协议的网络引擎,包括两个部分: a、服务器采用完成端口模型,提供了丰富的接口函数 b、客户端采用三线程加重叠Io模型,速度快,稳定 都采用回调函数接收数据,是对网络Tcp模型Socket的完整封装,所有代码在Windows2000下测试通过,并已应用到很多现有的中型网络系统中。-This a remarkably agreement Network engines, including two parts : a server used to complete port model, a rich interface function b, client using three overlapping threads increases Io model, speed and stability using a callback function to receive information, the network model DEC Socket complete package, all of the code in the test under Windows 2000, and has been applied to many existing medium-sized network systems.
    2022-03-13 04:19:31下载
    积分:1
  • 这是一个很好的FTP客户端源码
    This a good FTP Client Source
    2022-03-11 15:03:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载