登录
首页 » Java » graphics

graphics

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

  • 飞鸽传输源代码,很好,vb写得。适合开发者
    飞鸽传输源代码,很好,vb写得。适合开发者-Dove transmission source code, well, vb written. For developers
    2022-03-18 06:22:14下载
    积分:1
  • flight_trajectory
    模拟飞机的运行轨迹,包括爬升、航路、降落、进近、着陆等飞行阶段(AIRCRAFT FLIGHT TRAJECTORY)
    2021-03-22 10:59:16下载
    积分:1
  • KMSpico.v10.2.0
    说明:  KMSpico V10 keygen license for microsoft office and windows
    2019-02-12 14:51:45下载
    积分:1
  • MSDN_Tools
    用于msdn信息检索的工具。可以将*.chi文件集成到*.chm文件中。(For msdn information retrieval tool.*. Chi file can be integrated into a*. chm file.)
    2009-10-21 11:23:59下载
    积分:1
  • 源代码
    可以读取气象资料中的站点数据,将其插值为0.5*0.5格点数据,然后可以利用格点数据进行数据处理和画图。(Station data in meteorological data can be read and interpolated into 0.5*0.5 grid data. Lattice data can be used for data processing and drawing.)
    2019-06-24 16:32:55下载
    积分:1
  • bplustree-disk-io
    A minimal but extreme fast B+ tree indexing structure demo for billions of key-value storage
    2020-06-24 21:40:01下载
    积分:1
  • straintest
    应变的采集显示,可实现多通道的显示,包括图形、数据,有相应的操作界面等(strain aquistion)
    2010-06-08 10:16:31下载
    积分:1
  • 网络通信源码
    网络通信编程源码-network communications programming source
    2022-06-14 19:03:41下载
    积分:1
  • 序使用Visual C++6.0写,使用了MFC,数据库用的是SQL Server,要正常运行本序,请安装该数据库,并参加压缩文件中的DBConfig....
    本程序使用Visual C++6.0编写,使用了MFC,数据库用的是SQL Server,要正常运行本程序,请安装该数据库,并参加压缩文件中的DBConfig.ini文件。可以监控局域网内所有主机(IP)的上网情况,包括上传下载流量、浏览的网页、上网时长等-This procedure using Visual C++ 6.0 preparation, the use of the MFC, the database used is SQL Server, to the normal operation of this program, please install the database, and participated in the compressed file DBConfig.ini file. LAN can monitor all hosts (IP) access to the Internet, including uploading and downloading traffic, browsing web pages, Internet time and long
    2022-01-26 15:34:07下载
    积分:1
  • 多播源码的示例系统
    多播源码的示例系统-multicast source code examples system
    2022-11-04 06:00:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载