A convenient shorthand notation for a default value
virtual void Function(const float x, const float y =0.);
“if this parameter is not given, set it to 0”
virtual void Function(const float x);
virtual void Function(const float x, const float y);
We want the y parameter, if omitted, to default to y=0. For this case there is a shorthand notation:
virtual void Function(const float x = 3.1415, const float y =0.);
You can give more than one default parameter: