1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is the function overloading?

Discussion in 'C++' started by johnBMitchell, May 26, 2012.

  1. johnBMitchell

    johnBMitchell New Member

    Joined:
    Feb 17, 2011
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    CA, USA
    Home Page:
    C++ allows two functions with the similar name with unique argument list. When you use two or more functions with the same name with the different signature then it is known as function overloading. The function can be differentiating by using their number of parameters or type of arguments.

    The main benefit of overloading is that it helps to execute similar operations on unique data types without defining separate names for each function.
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    So what is your point? Just drop a siglink or anything more than that. It does not explain any aspect of function overloading.
     
  3. sumtaru

    sumtaru New Member

    Joined:
    May 17, 2012
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Two or more functions can have same name but do different things.
     
  4. ballurohit

    ballurohit New Member

    Joined:
    Nov 18, 2011
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    retired
    Location:
    Gujarat
    At least one of its parameters must have a different type.
     

Share This Page