Question
Which option is best to eliminate the memory problem?
Answer: Option D
Was this answer helpful ?
Explanation:Virtual destructor means is that the object is destructed in reverse order in which
it was constructed and the smart pointer will delete the object from memory when the object
goes out of scope.
Was this answer helpful ?
Submit Solution