| CS 1371 Dept. Presents: |
Class MStack
| Method Summary | |
|---|---|
| MStack (data) Constructor that creates a linked list stack |
|
The string representation of the MStack |
|
| pop ( )
Pops the top item off the stack and returns it |
|
| push ( )
Push takes in an object and pushes it onto the stack |
|
| Method Detail |
|---|
MStack
st = MStack(data)
Creates a MStack object
Data might be another stack or a list of stuff
st = MStack ( ) will create an empty stack.