public class RowCol extends BasicSum { private int index; /** * Constructor for objects of class RowCol */ public RowCol (int index) { this.total = 45; this.index = index; } } public class BasicSum { // instance variables protected int total; protected ArrayList cell; /** * Constructor for objects of class Sum */ public BasicSum (int total) { this.total = total; this.cell = new ArrayList(); } /* Stripped irrelevent methods */ }