Abstract Data type(ADT):
- Abstraction is the concept of hiding un-necessary details and shows only essential features.
- Abstract type of function is called Prototype of function.
- The technical representation of functionality is called Abstract type.
- We can implement the prototype using any programming language.
Stack ADT: Abstract Data Type specifies the operations can be performed on Stack
- Push: Push an element on to the Stack. Returns “Overflow” if stack is full.
- Pop: Deletes top item from Stack. Returns “Underflow” if Stack is empty.
- Peek: Returns top element of stack but not removes.
- isEmpty: Returns true if stack is empty, else false
- isFull: Returns true if stack is full, else false
- Traverse: Display elements of Stack.