文件名称:PointDraw
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 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
(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
本Java程序设计详细要求.txt