An object of class DynamicArrayOfInt acts like an array with unlimited size. In the constructor, initially the data array has a size of 1 and grows as necessary.

The method put(position, value); is used to store the value at the specified position in the array. There is no pre-set limit on how large position can be, although for very large values there would be problems with having enough computer memory. The function get(position); is used to retrieve the value stored in the specified position. If no value has ever been put at that position, then the value is zero.