Ruby - Difference between Parameters and Arguments

Parameters and Arguments
A parameter is what you define when you create a method that accepts an argument.  

Defining the Method:

def Method(parameter

functions

end

 

Calling the Method:

Method(argument)

 

So, an argument is what fills the parameter.  One might compare a parameter to a variable, and an argument to what you stick inside the variable. 

| Back

Footerfull