M
Mark Sullivan
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
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