What is the definition of the public method getRootData? Recall that thismethod has a precondition.

What will be an ideal response?


```
template
ItemType BinaryNodeTree::getRootData() const
throw(PrecondViolatedExcept)
{
if (isEmpty())
throw PrecondViolatedExcept(
"getRootData() called, but tree is empty.");
els
return rootPtr->getItem();
} // end getRootData

```

Computer Science & Information Technology

You might also like to view...

Generics make writing a program more __________.

a) elegant b) cumbersome c) concise d) a and c

Computer Science & Information Technology

A(n) __________ is often used to implement a priority queue.

A. array B. heap C. linked list D. stack

Computer Science & Information Technology

The only way to create a table in PowerPoint is by using the Draw Table pointer

Indicate whether the statement is true or false

Computer Science & Information Technology

Which type of format acquisition leaves the investigator unable to share an image between different vendors’ computer forensics analysis tools?

a. Proprietary b. Raw c. AFF d. AFD

Computer Science & Information Technology