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
What is operator overloading?
Differentiate between overloading and overriding.
Explain about message passing in object oriented programming?
Explain what a method is?
How to define an abstract class?
What is the difference between new and override?
What is the difference between a virtual method and an abstract method?
Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?
Can we have a default method definition in the interface without specifying the keyword "default"?
What is Polymorphism, overloading, overriding and virtual?
Does java support multiple inheritance? if not, what is the solution?
What is overriding?
What is the difference between function overloading and over riding?
Can we override a method by using same method name and arguments but different return types?
What are the features that are provided to make a program modular?