Function: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Rewrite Template:Lang to Template:LanguageBar. This action was performed by a bot.) |
||
(28 intermediate revisions by 14 users not shown) | |||
Line 1: | Line 1: | ||
{{LanguageBar|Function}} | |||
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 == | |||
* [[:Category:Functions]] | |||
* [[Wikipedia:Macro]] | |||
[[Category:Variables]] | [[Category:Variables]] | ||
[[Category:Glossary]] | |||
[[Category:English]] | |||
Latest revision as of 17:55, 18 July 2025
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.