/** * */ package dist; /** * @author casteran */ public class Point3D_v2 extends Point2D { private int z = 0; /** * @param x * @param y */ public Point3D_v2(int x, int y) { super(x, y); // TODO Auto-generated constructor stub } /** * @param x * @param y */ public Point3D_v2(int x, int y, int z) { super(x, y); this.z = z; // TODO Auto-generated constructor stub } /** * @param args */ public double distance(Point2D p) { /**...**/ } public static void main(String[] args) { /**...**/ } }