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

Answer Posted / some guy

Actually, the answer is not complete, so as question is
not, let's say, "perfect". "signature" is not arguments
only, but plus "const"ness. For example in example above,
in class person there could be absolutely legal to have two
functions:
char getsex();
char getsex() const;

Though the answer would be ABSOLUTELY correct, so as the
question, in case we're talking about "functions" and NOT
about "member functions"

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is operator overloading?

725


Differentiate between overloading and overriding.

589


Explain about message passing in object oriented programming?

587


Explain what a method is?

615


How to define an abstract class?

598






What is the difference between new and override?

553


What is the difference between a virtual method and an abstract method?

532


Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?

573


Can we have a default method definition in the interface without specifying the keyword "default"?

536


What is Polymorphism, overloading, overriding and virtual?

589


Does java support multiple inheritance? if not, what is the solution?

543


What is overriding?

611


What is the difference between function overloading and over riding?

562


Can we override a method by using same method name and arguments but different return types?

523


What are the features that are provided to make a program modular?

599