Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Why does the function arguments are called as "signatures"?

Answer Posted / arul

The arguments distinguish functions with the same name
(functional polymorphism). The name alone does not
necessarily identify a unique function. However, the name
and its arguments (signatures) will uniquely identify a
function.
In real life we see suppose, in class there are two guys
with same name, but they can be easily identified by
their signatures. The same concept is applied here.
ex:
class person
{
public:
char getsex();
void setsex(char);
void setsex(int);
};
In the above example we see that there is a function setsex
() with same name but with different signature.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a pure virtual function?

1757


What are virtual functions, base class pointer, derived class pointer, biding references?

1033


Write a note about inheritance?

982


How to define an abstract class?

1089


What is the difference abstract class and interface?

1033


Can you create an instance of an interface?

1106


How to make a class accessible as a web service?

1011


What are the major differences between late and dynamic binding?

1050


What is serialization? How do we implement serialization actually?

1041


What is an abstract property. Give an example?

1009


Can you instantiate an abstract class and what is an inner class?

1016


What are all the languages which support oop?

1027


Can a function be overloaded based on return types?

1028


Can an interface inherit from another interface?

1070


Explain about a class?

1082