View Single Post
  #1 (permalink)  
Old 01-14-2008, 03:55 AM
vigneshgets vigneshgets is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 904
vigneshgets is on a distinguished road
Thumbs up Difference between function overloading and operator overloading

Difference between function overloading and operator overloading:

Function overloading is the practice of declaring the same function with different signatures. The same function name will be used with different number of parameters and parameters of different type. But overloading of functions with different return types are not allowed.

On the other hand operator overloading is:

Operating overloading allows you to pass different variable types to the same function and produce different results. In this article Ben gives us the low-down on operator overloading in C++.Operator overloading is common-place among many efficient C++ programmers. It allows you to use the same function name, but as different functions.

- Vignesh
Reply With Quote
Sponsored Links