 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
Another
operator that is interesting to discuss is the (),
|
|
|
function
call operator.
|
|
|
| • |
This
operator is the only operator we can overload with as
|
|
|
many
arguments as we want. We are not limited to 1, 2, 3,
|
|
etc.
In fact, the function call operator may be overloaded
|
|
|
several
times within the same scope with a different
|
|
|
number
(and/or type) of arguments.
|
|
|
| • |
It is
useful for accessing elements from a multi-
|
|
|
dimensional
array: matrix (row, col) where the []
|
|
|
operator
cannot help out as it takes 2 operands always,
|
|
|
never
3!
|
|