Why does the function arguments are called as "signatures"?
Answer Posted / ash
As function name, return type and arguments helps to
identify the function which needs to be invoked hence the
name signatures. In polymorphism there can be function
overload hence args and ret type along with name are required.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a class implement two interfaces having default method with same name and signature?
Explain about Overloading vs Overriding ?
What is Polymorphism, overloading, overriding and virtual?
Define exceptions?
Can we have a default method definition in the interface without specifying the keyword "default"?
Define modularity?
Name some languages which have object oriented language and characteristics?
What are the problems faced by the developer using object oriented programming language?
What is the difference between an error and an exception?
Are constructors inherited? Can a subclass call the parent's class constructor? When?
Describe inheritance and non-inheritance of a derived class?
What if we override the conflicting method in the class?
Why do we separate interface from implementation?
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 Abstract method and how different from Virtual Method?