I have this code:
#include <iostream>
class A
{
public:
A() { std::cout << 'a'; }
~A() { std::cout << 'A'; }
};
class B
{
public:
B() { std::cout << 'b'; }
~B() { std::cout << 'B'; }
A a;
};
int main() {B b; }
Why is it creating object A a;
is done before executing B b;
arguments?
Is there a priority sequence?