Function: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[Category:Variables]][[Category:Glossary]] | [[Category:Variables]][[Category:Glossary]] | ||
A function, in programming, is a block of code that can be executed at any time within the code. | A [[function]], in programming, is a block of code that can be executed at any time within the code. | ||
[[Function]]s consist of the access modifier (public, protected, or private), the return type (void if no return), the [[function]] name, the arguments (variables defined outside of the [[function]], but used inside of the [[function]]), and the code block. | |||
[[Function]]s can be globals, or belong to either a type or specific object | |||
==See Also== | |||
* [[Macro]] |
Revision as of 06:23, 20 October 2005
A function, in programming, is a block of code that can be executed at any time within the code.
Functions consist of the access modifier (public, protected, or private), the return type (void if no return), the function name, the arguments (variables defined outside of the function, but used inside of the function), and the code block.
Functions can be globals, or belong to either a type or specific object