The StackAsArray class contains one field--an array of Objects called array. In addition, the StackAsArray class inherits the count field from the AbstractContainer class. In the array implementation of the stack, the elements contained in the stack occupy positions 0, 1, ..., of the array.