| Quiz | Posted (Wednesdays) |
Given in class (Wednesdays) |
||
|---|---|---|---|---|
| 31 | Mar | 7 | Apr | |
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.
Stack
for a stack that includes the operations
isEmpty,
push, and
pop (you may find that other methods are needed).
In the abstract class, make pop non-abstract. It should
throw an error if the stack is empty, otherwise do a "real pop".
Stack class into ListBasedStack
that uses
the List from class.
Stack class into QueueBasedStack
that uses the Queue structure
presented in class.
Shape that includes
methods for determinng the shape's area and circumference.
Shape class into Rectangle.
Rectangle class into Square.