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 are the rules to define a functional interface?
How many methods do u implement if implement the serializable interface?
What is data encapsulation and what's its significance?
Define modularity?
Explain the abstract class modifier?
Write a note on encapsulation?
What is an interface?
How can we restrict inheritance for a class so that no class can be inherited from it?
What is constructor and virtual function? Can we call virtual funciton in a constructor?
If a method definition has been specified in the base class and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?
Are constructors inherited? Can a subclass call the parent's class constructor? When?
What is the difference between function overloading and over riding?
Define Initialisation Purpose.
Explain about a class in oop?
What is the main difference between overloading and overriding?