登录
首页 » Java » graphics

graphics

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

  • 最近两年出版的一本网络书籍的源码,其中很多代码非常有用,包括IOCP、P2P等,强烈推荐,也是不错的Visual C++的学习代码。...
    最近两年出版的一本网络编程书籍的源码,其中很多代码非常有用,包括IOCP、P2P等,强烈推荐,也是不错的Visual C++的学习代码。-Published in the past two years, a network programming book source, many of which are very useful code, including the IOCP, P2P, etc., strongly recommend, is also a good Visual C++ Learning code.
    2022-01-22 10:56:04下载
    积分:1
  • TCP发包客户端,可以设置目的IP,目的端口
    TCP发包客户端编程,可以设置目的IP,目的端口-TCP client contract programming, you can set the purpose of IP, destination port
    2022-06-27 03:59:45下载
    积分:1
  • 1
    说明:  c语言程序教你快速学习模仿程序,很快进入语言环境(c language program to teach you quickly learn to imitate procedures, and soon enter the language environment)
    2011-03-17 19:29:52下载
    积分:1
  • PEInfo(C++)
    简单的PE文件分析器,主要是得到PE文件的各项信息,仅供初学者使用。(Simple PE file analyzer, mainly to get PE file information, for beginners only.)
    2020-06-20 17:20:01下载
    积分:1
  • 一个实现点对点传输的小序,可以用来了解WINDOWS套接字
    一个实现点对点传输的小程序,可以用来了解WINDOWS套接字-achieve a point-to-point transmission of small programs can be used to understand the Windows Sockets
    2022-01-26 00:59:49下载
    积分:1
  • AccessTest02
    MFC实现对Access数据库的创建、数据表的创建,已经相关数据的增删改查等功能;这里上传,以供后期借鉴!(MFC to achieve the creation of the Access database, create tables, add and delete related data has been changed check function upload here for late draw!)
    2014-07-03 13:25:27下载
    积分:1
  • 贪吃蛇
    说明:  c++版贪吃蛇,帮助新手快速入门C++开发,学习游戏开发(C-version of the greedy snake, to help novices get started C-development)
    2020-06-18 23:40:02下载
    积分:1
  • OneToOne
    说明:  一个EJB3.0的onetoone映射的例子,基于eclipse平台编写(Onetoone a mapping of EJB3.0 example, based on the eclipse platform for the preparation of)
    2008-12-06 18:38:05下载
    积分:1
  • a73
    用java写的程序 运行通过 适合初学者学习,值得推荐下载实践。谢谢(Programs written with java for beginners to learn to run through, it is recommended to download practice. Thank you)
    2010-10-02 23:13:00下载
    积分:1
  • tss
    一个吞食蛇得游戏,用JAVA写的。7KB大小,学习的可以下载看下(Snake swallowed a very game, written using JAVA. 7KB size, learning can be downloaded Kanxia)
    2009-11-17 21:27:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载