/** @author Scott Marshall @author University of Glasgow, MSc IT Project 2001 @author Building an OnLine Course in Computing Fundamentals */ package ukacgla_KMap; abstract public class Abstract_Cell { protected String cell; int xCoord; int yCoord; /** Each cell in the K Map is read, and the information stored as a Cell object. Cell holds the 2D coordinate from the table, plus a string to describe this coordinate */ public Abstract_Cell(String x, String y, int a, int b){ cell = x + y; xCoord =a; yCoord =b; } /** Returns String describing the cells coordinate, based on row and column titles. */ public String getCell() { return cell; } /** Returns row coordinate. */ public int getxCoord() { return xCoord; } /** Returns y coordiante. */ public int getyCoord() { return yCoord; } }