I'm starting learn constructors and destructors in C++ and I saw it
Vector(const Vector& V) {x=V.x;y=V.y;}
and
Vector(const Vector& V) : x(V.x), y(V.y) {}
But I can't understand what is the second one, this
Vector(const Vector& V) {x=V.x; y=V.y;}
that I suppose equals to
Vector(const Vector& V) {
x = V.x;
y = V.y;
}
But what is the other one equals?