CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 WEB源码 JSP源码/Java

文件名称:PointDraw

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2012-11-16
  • 文件大小:
    1.47kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

个人原创代码:Point2D和Point3D作图。编写Java Application程序,分别编写两个类Point2D,Point3D来表示二维空间和三维空间的点,使之满足下列要求:

(1) Point2D有两个整型成员变量x, y (分别为二维空间的X,Y方向坐标),Point2D的构造方法要实现对其成员变量x, y的初始化。

(2)Point2D有一个void型成员方法offset(int a, int b),它可以实现Point2D的平移。

(3)Point3D是Point2D的直接子类,它有有三个整型成员变量x,y,z (分别为三维空间的X,Y,Z方向坐标),Point3D有两个构造方法:Point3D(int x,int y,int z)和Point3D(Point2D p,int z),两者均可实现对Point3D的成员变量x, y,z的初始化。

(4)Point3D有一个void型成员方法offset(int a, int b,int c),该方法可以实现Point3D的平移。

(5)在Point3D中的主函数main()中实例化两个Point2D的对象p2d1,p2d2,打印出它们之间的距离,再实例化两个Point2D的对象p3d1,p3d2,打印出他们之间的距离。-Personal original code: Point2D and Point3D mapping. Write a java application program, namely the preparation of two classes Point2D, the Point3D to the point of the two-dimensional space and three-dimensional space, to meet the following requirements:

(1) Point2D two integer member variables x and y (respectively for the two-dimensional space X, the Y-direction coordinate), the construction method in Point2D to achieve its member variables x, y initialization.

(2) Point2D a void member offset (int a, int b), it can Point2D translational.

(3) the Point3D is a direct subclass of Point2D, it has three integer member variables x, y, and z (respectively, three-dimensional space X, Y, Z direction coordinate), Point3D has two constructors: the Point3D (int x int y, int z) and the Point3D (Point2D p-int z), both of which can Point3D member variable x, y, and z initialization.

(4) the Point3D a void member offset (int a, int b, int c), the method can achieve the Point3D the pan.

(5) the P
(系统自动生成,下载前可以参看下载内容)

下载文件列表

PointDraw.java
本Java程序设计详细要求.txt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com