In the main function, two Vector objects are created (a and b), and then added together using the + operator. The result is assigned to a third Vector object c.
By using friend functions to overload operators in C++, you can provide convenient and natural syntax for working with user-defined types in C++, and enable expressions like a + b to be evaluated just like built-in types.