Function: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Reverted edit of last, changed back to last version by cur)
No edit summary
Line 1: Line 1:
{{otherlang2
|de=Function:de
}}
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.


Line 11: Line 14:
[[Category:Variables]]
[[Category:Variables]]
[[Category:Glossary]]
[[Category:Glossary]]
[[Category:English]]

Revision as of 08:51, 14 May 2011

Template:Otherlang2 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.

See also