Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Point3D extends Point2D{
- private float z = 0.0f;
- public Point3D(float x, float y, float z) {
- super(x, y);
- this.z = z;
- }
- public Point3D() {
- }
- public float getZ() {
- return z;
- }
- public void setZ(float z) {
- this.z = z;
- }
- // public void setXYZ(float x, float y, float z) {
- // this.x=x;
- //}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement