- Category:
- Java Develop
- Tags:
-
- File Size:
- 10kb
- Update:
- 2017-10-24
- Downloads:
- 0 Times
- Uploaded by:
- 张
Description: The definition of Point2D class of two dimensional space points is as follows. On this basis, the Point3D class of 3D space point is derived. According to mathematics, we increase the membership variable Z, define the construction method of three parameters and the construction method without parameter (the object corresponding to the origin), rewrite the toString () and getDistance () methods, and rewrite the equals () method. The TestPoint (main) method of class defines more than 3 points for testing, and the result format is as follows.
To Search:
File list (Check if you may need any files):