Review of Function Overloading

Function Signatures

swap( )

We can write functions that swap various kinds of primitive data types and objects that we define. We still need separate functions, but they can all have the same name. void swap (int& a, int& b); void swap (double& a, double& b); void swap (Bob& a, Bob& b);

Last Modified: Monday, 28-Aug-2006 10:15:53 EDT