From: jalina on
Mark Sullivan a �crit :
> Assume I have the following code structure:
>
> class A .... { ..... }
>
>
> class B .... { .... }
>
> main () {
>
> A a;
> B b;
>
> ....
>
> }
>
> Both objcts a and b are created at the beginning.
>
> But when the main program reaches the end which destructor is called first:
>
> ~A()
>
> or
>
> ~B()
>
> ?
> Mark
>
~B() first then ~A()