First page Back Continue Last page Graphics
Stack ADT
Data
- We need some form of a list. Commonly, we use an array or a linked list. For an array this would mean Array, and Size.
- Top : points to the top of the stack.
Methods
- Push: Add an object to the stack.
- Pop: Remove an object from a stack.
- IsEmpty: True, when stack is empty.
- IsFull: True, when stack is full.