When is a destructor called?

来源:互联网 发布:梦幻诛仙龙晶合成算法 编辑:程序博客网 时间:2024/05/17 09:27
1.The destructor is called automatically by the compiler when the object  goes out of scope.
2.The only evidence for a destructor call is the closing brace of the scope that surrounds the object.
0 0