Advertisement
Guest User

Untitled

a guest
Apr 5th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. public class Point3D extends Point2D{
  2.     private float z = 0.0f;
  3.  
  4.  
  5.     public Point3D(float x, float y, float z) {
  6.         super(x, y);
  7.         this.z = z;
  8.     }
  9.  
  10.     public Point3D() {
  11.     }
  12.  
  13.     public float getZ() {
  14.         return z;
  15.     }
  16.  
  17.     public void setZ(float z) {
  18.         this.z = z;
  19.     }
  20.    // public void setXYZ(float x, float y, float z) {
  21.      //   this.x=x;
  22.     //}
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement