Create a class named Vector that represents a vector on the plane with two coordinates: and .
Implement the following constructors for this class:
A default constructor that initializes the class fields to zero.
A constructor that accepts two integer parameters, representing the vector's coordinates.
Implement the following methods:
void Input(): Reads two vector coordinates, and , from a single line of input, separated by a space.
void Out(): Outputs the vector coordinates, separated by a space, followed by a newline.
Overload the following operators:
= (assignment)
+ (vector addition)
- (vector subtraction)
+= and -=
* (dot product of vectors, returns a number)
Submit only the implementation of the class. The solution will be evaluated in the programming languages C++ and C#.