|Given in class
You will fare better on the quiz if you try working the problems before looking at the solutions. If you don't understand the question or its answer, please get help.
Stackfor a stack that includes the operations
pop(you may find that other methods are needed). In the abstract class, make
popnon-abstract. It should throw an error if the stack is empty, otherwise do a "real pop".
ListBasedStackthat uses the List from class.
QueueBasedStackthat uses the
Queuestructure presented in class.
Shapethat includes methods for determinng the shape's area and circumference.