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 virtual?

1163


State about java and its relation to object oriented programming?

1028


What are the different types of inheritance?

942


What are different types of arguments?

1085


How can we restrict inheritance for a class so that no class can be inherited from it?

1079


Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?

1034


Explain about realistic modeling?

964


What is the order of call of constructors in inheritiance?

1012


What does the keyword virtual represented in the method definition?

1054


Do structs support inheritance?

952


What is the use of destructive method?

948


Write about abstract base classes?

1015


What does the “abstract” keyword mean in front of a method? A class?

966


Explain about parametric polymorphism?

1015


What is @functionalinterface?

993