The stub of append() should look like this:
void ArrayQueue::append(const Item& it) {
}
The append() method should behave as follows:
- If the queue is full, throw a FullQueueException;
- Otherwise:
- Store it in myArray at index myLast;
- Add 1 to myLast (modulus myCapacity); and
- Add 1 to mySize.