Difference between revisions of "Parameter Passing - 2017"
(Created page with "dibs") |
|||
Line 1: | Line 1: | ||
− | + | Parameter passing is inserting values into methods or calculations using a declared variable, rather than the raw data (strings, numbers, bools, etc.). | |
+ | This can be done in multiple ways, but the most often used (in the skeleton program) will be: | ||
+ | <syntaxhighlight lang="csharp"> | ||
+ | int a = 10; | ||
+ | string b= "yes"; | ||
+ | or otherwise. | ||
+ | </syntaxhighlight> |
Revision as of 14:31, 13 February 2017
Parameter passing is inserting values into methods or calculations using a declared variable, rather than the raw data (strings, numbers, bools, etc.). This can be done in multiple ways, but the most often used (in the skeleton program) will be:
int a = 10;
string b= "yes";
or otherwise.