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 are the different ways for a method to be overloaded?

538


What are abstract classes?

605


What are the methods required to create changes in subclasses?

558


What is overriding?

611


What is early and late Binding?

578






Can an interface implement or extend another interface?

563


What is the difference between aggregation and composition?

517


Differentiate between data abstraction and encapsulation.

525


What is the purpose of late binding in object-oriented programming?

569


What are different ways to create string object?

575


How can we call the base method without creating an instance?

595


What is meant by function overloading and function overriding?

600


Do we require a parameter for constructors?

558


Difference between encapsulation and data hiding ?

515


Give any criteria when you use an abstract class and an interface?

571