import java.util.LinkedList; import java.util.List; public class Ps3Vertex extends Ps2Vertex implements XYLocation { double x; double y; Ps3Vertex (String vertexname) { super(vertexname); x=0.0; y=0.0; } Ps3Vertex (String vertexname, double x, double y) { super(vertexname); this.x=x; this.y=y; } public double getXlocation () { return x; } public double getYlocation () { return y; } public void setXlocation (double x) { this.x=x; } public void setYlocation (double y) { this.y=y; } }