Homework 5 Solutions

No, this is definitely not what you want. backingArray[x] is not a pointer, so you can't delete it. Notice that in the ctor we created a single array using new ... so we ought to be deleting a single array using delete[] here.
Just: "delete[] backingArray;", no loop.