While you define Methods with arguments, there are two ways of parameter passing:
Call by Value: Those parameters that are already evaluated when they are passed to a function.
Syntax : parameter: parameterType
Call by Name : These are the parameters that are not already evaluated but will be evaluated each time a call to function is made.
Syntax : parameter :=> parameterType
Example :
Output: