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

explain dynamic binding

1069


Explain method overriding.

1141


Can a class implement two interfaces having default method with same name and signature?

1056


What are the four important foundation concepts of OOP ?

1000


What do you mean by abstract class?

1114


Can a class in java be inherited from more than one class?

983


What is a try/ catch block?

1040


Explain what is meant by polymorphism?

1113


What is the main difference between a class and an object?

1047


Explain about inheritance hierarchies?

1031


What is inheritance in java?

1365


Explain the purpose of composition.

1067


What is polymorphism? When is it employed? give an example.

1074


What is super keyword?

1023


Explain the use of Vtable and what are the various problems to override the functions?

994