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

What is the difference between an abstract class and interface in java?

747


Can an interface have an inner class?

774


What is abstract method?

691


Explain about parametric polymorphism?

768


What is data encapsulation and what's its significance?

763






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

910


What is the super keyword?

765


What is the difference between a virtual method and an abstract method?

698


Why is OOP good?

732


Write about abstract base classes?

762


Differentiate between an abstract class and an interface?

714


What is Polymorphism, overloading, overriding and virtual?

760


What are the features of encapsulation ?

725


What are the methods required to create changes in subclasses?

742


How many methods are there in the serializable interface?

707