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

984


Can you explain primordial class loader?

931


Which oops concept exposes only necessary information to the calling functions?

1009


Explain the meaning of object in object oriented programming?

1066


Why are virtual users created?

1057


What is constructor and virtual function? Can we call virtual funciton in a constructor?

1013


What is the use of interface?

1068


What is the order of call of constructors in inheritiance?

1022


What is the difference between a class and an object?

1452


What is the use if instanceof keyword? And how do refer to a current instance of object?

941


Can we override static methods? Why?

955


What is the practical implementation of inner classes?

989


Classes and structs support inheritance. Is this statement true or false?

1004


What is inheritance in java?

1272


What is the difference abstract class and interface?

984