Function: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
InvaderZim (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
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. | ||
Functions consist of 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 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 |
Revision as of 14:31, 6 August 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