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 function be overloaded based on return types?
What is the difference between class inheritance and interface inheritance?
What interface must an object implement before it can be written to a stream as an object?
What do you mean by data hiding?
Explain what is single and multiple inheritance?
What is the need of multiple inheritance?
Why are outlet connections required in object-oriented programming?
Explain about abstraction?
What is hybrid inheritance?
Why dynamic binding is used in object-oriented programming?
What is the difference between multiple and multilevel inheritance?
What if we make the method as abstract in another interface?
How does abstraction differ from encapsulation.
Whether static method can use nonstatic members?
Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?