16

package arraylistlearning;

import java.awt.*;

public class Point3D extends Point {
public int z;

public Point3D(int x, int y, int z) {
super(x,y);
this.z = z;
}

public void move(int x, int y, int z) {
this.z = z;
super.move(x, y);
}

public void translate(int x, int y, int z) {
this.z += z;
super.translate(x, y);
}
}

posted on 2017-03-11 21:44  tuzhuo  阅读(74)  评论(0编辑  收藏  举报