Explanation of the following syntax?

I recently stumbled onto this syntax while reading a piece of code. Its just a struct declaration

1
2
3
4
5
6
7
8
9
struct Vector2D
{
  double x;
  double y;

Vector2D():x(0.0), y(0.0){}
Vector2D(double a, double b):x(a), y(b){}

}


I am referring to the Vector2D(): type syntax specifically. I have seen the the use of colons for bit field, but not in this manner. Can somebody explain whats happening?
Lol thanks @norm b,

I could of done that myself, but I didn't know the proper terminology because I hadn't seen it used before in structs. Again thanks
Topic archived. No new replies allowed.