adplus-dvertising
frame-decoration

Question

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

Answer: (d).use smart pointers & virtual destructor

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which option is best to eliminate the memory problem?