0

What is the meaning of ":x(x),y(y)"?

Point (int x=0,int y=0):x(x),y(y)

1st Dec 2016, 1:03 AM
劳英勇
劳英勇 - avatar
1 ответ
+ 2
That's an initializer list. It initializes each instance attribute to the given value.
1st Dec 2016, 4:32 PM
James Durand
James Durand - avatar