J
johny smith
Suppose there is a policy that all objects are statically declared.
For example:
static Car car();
Then, is there a reason to have a destructor defined for the class Car.
It would seem that perhaps there would not be a need for a destructor
because the object would never go out of scope due to the static storage.
Any insight?
Many thanks
For example:
static Car car();
Then, is there a reason to have a destructor defined for the class Car.
It would seem that perhaps there would not be a need for a destructor
because the object would never go out of scope due to the static storage.
Any insight?
Many thanks