I have an class A which uses a heap memory allocation for one of its fields. Class A is instantiated and stored as a pointer field in another class (clas
class A
clas
When you call delete on a pointer allocated by new, the destructor of the object pointed to will be called.
A * p = new A; delete p; // A:~A() called for you on obkect pointed to by p