Why is the isEmpty() member method called?

Skill/Topic: Queue
A) The isEmpty() member method is called within the dequeue process to determine if there is an item in the queue to be removed.

Showing Answers 1 - 1 of 1 Answers

samiksc

  • Jan 19th, 2006
 

IsEmpty() is called to decide whether the queue has at least one element. This method is called by the dequeue() method before returning the front element.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions