Re: c++ query
I think the way the objects work is that they are automatically removed when they go out of scope and that we cannot manually invoke the destructor to remove it... Not 100% sure though...
Try one thing... After the call to destructor, see if you can still access it (for eg, create a method hi to print hi, and call the method after the destructor call... It should work...
void main()
{
{
base test;
test.~base();
test.hi();
}
}
Arun
|