public class LabelledPoint extends Point { String label; // Class Constructor LabelledPoint(int x, int y, String s) { xCoord = x; yCoord = y; label = s; } // Method that sets the label of a LabelledPoint void setLabel(String s) { label = s; } }