I'm successfully overloading operator like this:
public static Vector3D operator +(Vector3D v1, Vector3D v2){ return new Vector3D(v1._x + v2._x, v1._y + v2._y, v1._z + v2._z); } I've read on this page that i could also do it like this:
public static Vector3D operator +(Vector3D v1, Vector3D v2) => new Vector3D(v1._x + v2._x, v1._y + v2._y, v1._z + v2._z); But in this case, under => I got error saying "; expected". What am I missing?