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


Please Help Members By Posting Answers For Below Questions

Can a function be overloaded based on return types?

541


What is the difference between class inheritance and interface inheritance?

586


What interface must an object implement before it can be written to a stream as an object?

613


What do you mean by data hiding?

617


Explain what is single and multiple inheritance?

551






What is the need of multiple inheritance?

573


Why are outlet connections required in object-oriented programming?

551


Explain about abstraction?

672


What is hybrid inheritance?

566


Why dynamic binding is used in object-oriented programming?

612


What is the difference between multiple and multilevel inheritance?

578


What if we make the method as abstract in another interface?

525


How does abstraction differ from encapsulation.

570


Whether static method can use nonstatic members?

547


Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?

730