Method ADT.Stack()->top()
- Method
top
ElementTypetop()- Description
Returns the top element from the stack, without popping it.
- Throws
Throws an error if called on an empty stack.
- See also
ElementType top()
Returns the top element from the stack, without popping it.
Throws an error if called on an empty stack.