First page Back Continue Last page Graphics
Default Arguments (cont.)
You must specify default values in a right to left order. You cannot have missing values to the right.
INVALID
- int bad_default ( int fred, int sally=12, int x );
Also, you can't call with missing middle arguments. INVALID! fun1(1, ,3);
Useful in reducing the number of functions you need to define for classes!