What's the difference between an argument and a parameter?
Code Basic: What’s the difference between an argument and a parameter?
Categories:
Name | Description |
---|---|
Parameter | variable in the declaration of function. |
Argument | the actual value of this variable that gets passed to function. |
// Parameter
public void MyMethod(string thisIsParameter) { }
//...
// Argument
string thisIsArgument = "this is argument";
myClass.MyMethod(thisIsArgument);