Suppose you change the definition of the destructor in Display 11.12 to
the following. How would the sample dialogue in Display 11.11 change? StringVar::~StringVar( )
{
cout << endl
<< "Good-bye cruel world! The short life of\n"
<< "this dynamic array is about to end.\n";
delete [] value;
}
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.