class A
{
private:
int a;
int b;
int c;
public:
A() : b(2), a(1), c (3)
{
}
};
As per C++ standard data members are constructed and initialized in the order they are declared, correct?
But when using initalization list, we are changing the order of data members, now do they initialize in order of initialization list or the order of declaration?