// ifndef BOB_H
// define BOB_H
class Bob
{
public:
Bob(char * name);
Bob();
~Bob();
int getName();
private:
char * Name; //???
}
// ENDIF //BOB_H
Here we have the constructors, and a simple GetName function declaration that fetches the private string, Name. When this is deconstructed, everything is put out of scope and unallocated. That's the point of it anyways. If you have variables that don't automatically go out of scope, then the deconstructor needs to take care of this other wise you will have very large memory leaks.
http://www.tech-recipes.com/rx/1231/c-destructor/
Good tutorial on why and when. Anyways, the point I made the class is to demonstrate when a deconstructor isn't really needed. All of the variables will go out of scope. As a result, there is no point in the deconstructor. The variables are called to NULL and are no longer in existance therefor they have gone out of scope and are not accessible any longer.
^ from what I've learned. I may be wrong on some of this.