class A { private: int a; int b; int c; public: A() : b(2), a(1), c (3) { } };
According to standard data elements, C ++ are created and initialized in the order in which they are declared, right?
But when using the initialization list, we change the order of the data members, now they are initialized in the order of the initialization list or the declaration order?
source share