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
Explain the purpose of composition.
If a method definition has been specified in class , its 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?
What is meant by function overloading and function overriding?
Can a class in java be inherited from more than one class?
What is the default access modifier for a class,struct and an interface declared directly with a namespace?
Explain about polymorphism?
What are the main features of oops?
Explain about the relationship between object oriented programming and databases?
Can we access interface static method using interface references?
What is overriding?
What's the benefit of using inheritance?
Explain method overriding.
What is the practical implementation of inner classes?
Can an interface contain fields?
Explain about abstraction?