CS233V C++ Programming

Assignment #12

Programming

Using class Array from Chapter 8, implement and test a class template Array. Then implement a class template Stack by private derivation from class template Array. Also, throw an exception if an attempt is made to push when the stack is full. Test your stack using the same driver that author uses for his class template Stack in Chapter 12.
Hint: You could start from your work in Assignment #9.