A destructor is called automatically by the system for any


Add a destructor to the LINKLIST program. It should delete all the links when a linklist object is destroyed. It can do this by following along the chain, deleting each link as it goes. You can test the destructor by having it display a message each time it deletes a link; it should delete the same number of links that were added to the list. (A destructor is called automatically by the system for any existing objects when the program exits.

Request for Solution File

Ask an Expert for Answer!!
Civil Engineering: A destructor is called automatically by the system for any
Reference No:- TGS01376446

Expected delivery within 24 Hours