English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Why does the function arguments are called as "signatures"?

2006-11-03 07:26:51 · 3 answers · asked by birendra c 1 in Computers & Internet Programming & Design

3 answers

The signature of a function include it's return type, it's arguments types, it's modifiers, and it's name.

It must be unique in a given scope and is the way it is identified by the compiler. The way it write itself as a unique entity, so by analogy it's called a signature.

2006-11-03 07:36:16 · answer #1 · answered by Rah-Mon Heur 4 · 1 0

A signature is supposed to be a way to uniquely identify each person. Likewise a method signature is supposed to be a description for compilers/loaders to uniquely identify each method.

Method signatures typically consist of the method name itself, the return type(s) and method arguments.

2006-11-05 06:04:16 · answer #2 · answered by >:niranjan 2 · 0 0

simply because its distanguish one methd from another


The signature of a function include it's return type, it's arguments types, it's modifiers, and it's name.

2006-11-03 08:04:31 · answer #3 · answered by mmh_edison 1 · 0 0

fedest.com, questions and answers