Which option is best to eliminate the memory problem?
(a) use smart pointers
(b) use raw pointers
(c) use virtual destructor
(d) use smart pointers & virtual destructor
This question was addressed to me in an interview.
This key question is from Large Objects in chapter Source Files, Classes and Operator Overloading in C++ of C++