What does this method do?

Given the following code:
template < class ItemType>
LinkedStack::~doSomething()
{
while (!isEmpty())
pop();
}
a. it is the destructor
b. it is the constructor
c. it displays the contents of the whole stack
d. if the stack is not empty, it returns the top of the stack

a. it is the destructor

Computer Science & Information Technology

You might also like to view...

Which country contributed the least amount of spam for the week ending July 24, 2011?

a. United Kingdom b. Poland c. Colombia d. Thailand

Computer Science & Information Technology

An image of an active window on your computer that can be pasted into a document is known as a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology