Revise the destructor in the class LinkedListso that it directly deletes eachnode of the underlying linked chain without calling either clearor remove.
What will be an ideal response?
```
template
LinkedList
{
while (headPtr != nullptr)
{
Node
headPtr = headPtr->getNext();
// Return node to the system
nodeToDeletePtr->setNext(nullptr);
delete nodeToDeletePtr;
} // end while
// headPtr is nullptr
nodeToDeletePtr = nullptr;
itemCount = 0;
} // end destructor
```
You might also like to view...
As you are developing your navigation form, if there are modifications you need to make in the form or report you are adding to the navigation form, you can make those modifications right in the ________
A) navigation form B) Navigation Pane C) Design view D) Layout preview
In the figure above, identify the location in the Character panel identified by the number 5.
What will be an ideal response?