Data Structures Question:
What does isEmpty() member method determines?
Answer:
isEmpty() checks if the stack has at least one element. This method is called by Pop() before retrieving and returning the top element.
Previous Question | Next Question |
What method removes the value from the top of a stack? | What is a queue in data structure? |