Parameters and Arguments
Learn what parameters and arguments are and understand the difference between them.
We'll cover the following...
There is always a little bit of confusion about parameters and arguments. Let me begin by saying that they are not the same. Parameters are the names of variables which define a function or a method. Arguments are values mapped to these parameters. In other words, arguments are passed or supplied through the function call and are stored in parameters so that it is accessible in the function body.
In the following example, num
is the ...