This is more of a general question to see if I got the concept.
I defined a class with private member data: one is an int variable and the other is a pointer.
1. Where is the int variable stored?... on the heap or on the stack?
2. Where is the pointer pointing?
3. When deleting the data (if it's stored on the heap) I've learned I have to delete the pointer using "delete" and then make it point to NULL. But what happens with the int variable. Does the destructor take care of it or do I have to get rid of it?
Any help is really appreciated,
thanks