The signature of a function is a way of describing the parameters and parameter types with which a legal call to the function can be made. It contains the name of the function, its parameters and their type, and the return value. Signatures may also be referred to as "function signatures", "method signatures", or "prototype definitions".
The notion of a function signature is an important concept for all computer science undergraduates
- Modern Object Orientation techniques make much use of Interfaces which are essentially a template made from function signatures
- C++ teaching must cover the important concept of function overloading which involves first introducing function signatures.
The practice of multiple inheritance requires careful consideration of the function signatures to avoid unpredictable results.
Computer science theory and the teaching of polymorphism in particular makes much use of the concept of function signature.
Roughly equivalent to its prototype definition in the C programming language.
CS, like many sciences, reuses terminology frequently. If you encounter the term 'signature' in an area of CS not concerned with programming then be sure to check your terminology with the published texts to avoid confusion.
Other areas of Computer Science where you might encounter the term signature:
- The study of databases might also involve the use of the term 'signature', however, before confusing the two things be sure of the definition at the top of this article.
In the ML family of programming languages, signature is a keyword referring to a construct of the module system that plays the role of an interface.
Read more about this topic: Type Signature
Famous quotes containing the word signature:
“The childless experts on child raising also bring tears of laughter to my eyes when they say, I love children because theyre so honest. There is not an agent in the CIA or the KGB who knows how to conceal the theft of food, how to fake being asleep, or how to forge a parents signature like a child.”
—Bill Cosby (20th century)