AllenJB
public java v1 · immutablepublic 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 private int total; private ArrayList cell; /** * Constructor for objects of class Sum */ public BasicSum (int total) { this.total = total; this.cell = new ArrayList(); }/* Stripped irrelevent methods */}