arrays therows array ( (bfigure sample - array(athe abstract view organized into rows and columns and (bthe physical storage of the - array using an array of arrays some languages that use the array of arrays approach for implementing - array provide access to the individual arrays used to store the row elements having access to the given - arraythese languages use the subscript notation [ ][cfor referencing an individual element to be consistent in our approach of hiding the implementation detailswe do not provide access to any of the - arrays used to store the elements of the - array thusour implementation requires the use of the subscript notation [ ,cthe implementation of the array abstract data type using an array of arrays is provided in listing the constructor creates data field named therows to which an array object is assigned this is the main array used to store the references to the other arrays that are created for each row in the - array listing the array py module with the array class implementation of the array adt using an array of arrays class array creates - array of size numrows numcols def __init__selfnumrowsnumcols )create - array to store an array reference for each row self _therows arraynumrows create the - arrays for each row of the - array for in rangenumrows self _therows[iarraynumcols returns the number of rows in the - array def numrowsself )return lenself _therows returns the number of columns in the - array def numcolsself )return lenself _therows[ clears the array by setting every element to the given value def clearselfvalue )for row in rangeself numrows()row clearvalue