A rather general question

Is it possible to create classes that use the comparator and combination operators?
For example, I would like to be able to write something like
1 2 3 4 5 6 7 8 9 10 11 12
| Vector2D a = new Vector2D(100, 200); Vector2D b = new Vector2D(100, 200);
Vector2D x = a + b;
( x == Vector2D(200, 400) )
OR
boolean x = (a > b);
( x == false ) |
Writing it that way is far more intuitive (for me anyway), than say having a method Vector2D.Add(Vector2D a, Vector2D b);
I seem to remember that this is possible in either C++ or C#, but cant recall where I saw the example.