一个CLASS 的 DESTRUCTOR 在什么时候会被CALL。
interview question.
问题
所有跟帖:
•
当然是被删除的时候 - 可以是手动删除,也可以是自动删除
-tty-
♂
(159 bytes)
()
08/23/2006 postreply
15:39:05
•
就这些?
-ohlalala-
♀
(0 bytes)
()
08/23/2006 postreply
15:40:55
•
再往深了就是virtual destructor/pure virtual destructor
-tty-
♂
(0 bytes)
()
08/23/2006 postreply
16:01:43
•
看看别人怎么答先
-ohlalala-
♀
(0 bytes)
()
08/23/2006 postreply
16:04:26