I wanna look at Constructor, i have reade it on Google.
"In C++, whenever an object of a class is created, its constructor is called. But that's not all--its parent class constructor is called, as are the constructors for all objects that belong to the class. By default, the constructors invoked are the default ("no-argument") constructors. Moreover, all of these constructors are called before the class's own constructor is called."
but i dont understand setence "But that's not all--its parent class constructor is called, as are the constructors for all objects that belong to the class"
thank you so much. when i create a obj T(10),
if U have U:U(int) and i create a constructor T:T(int value) : U(value) by inlitializer list then constructor U will initializes the U(int) part into that T type, that is right ?