Question: To prevent memory leak, you must write a destructor (not counting the compiler generated one) O A. if heap memory is used in the constructor


To prevent memory leak, you must write a destructor (not counting the compiler generated one) O A. if heap memory is used in the constructor of the class; B. if static memory is used in the constructor of the class. C. if stack memory is used in the constructor of the class; D.for each class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
