Select Answer
Both are safely destroyed
Only a is destroyed; b is leaked
Double-free -- both a.ptr and b.ptr point to the same memory; the second destructor frees already-freed memory, corrupting the heap
Compilation error -- classes with destructors cannot be copied