摘要:
从StackoverFlow上面找到的一个比较满意的答案:I will type an example :class A{public:virtual ~A(){}};class B: public A{public:~B(){}};int main(void){A * a = new B;delete a;return 0;}Now in Above Example , destructors will be called recursively bottom to up . My Question is how Compiler do this MAGIC .Good Answer:Th.
阅读全文