//Starter Code for the Tile class import java.awt.Color; import java.awt.Font; import java.awt.Graphics; //Make it a subclass of the Light class public class Tile { private int row, column; // add two instance variables, // digit that will contain a 1 up to a 9 // font, an instance of the Font class // Complete the constructor so that // row and column are initialized with -1 // digit is assigned a random number from 1 to 9 // font is initialized with a new instance of the // Font class that is "Helvetica", bold italic, size 35 // public Tile(int x, int y, int size) { super(x,y,size); } public void draw(Graphics g) { super.draw(g); g.setFont(font); int x = getX(); int y = getY(); int s = super.getSize(); g.setColor(Color.YELLOW); g.drawString(""+digit, x+s/3, y+3*s/4); } // add accessor methods so outside this class // other methods can get and set // row, column, and digit }