I had a question about when exactly deconstructors are processed in a program.
The example from this websites tutorial which I am looking at is on the bottom of the post.
I'm assuming that the deconstructor is called at the end of this constructor
1 2 3 4 5 6
CRectangle::CRectangle (int a, int b) {
width = newint;
height = newint;
*width = a;
*height = b;
} <<<< deconstructor is automatically checked for and called here?
A destructor (not deconstructor), is called when an object is destroyed, either through a delete call or by going out of scope. For example, rect/rectb inside your main function are destroyed when main returns.