Throughout, let
return_type
be the type of object/primitive/etc. you'd like to return (commonlyvoid
)blockName
be the variable name of the block you're creatingvar_type
be the type object/primitive/etc. you'd like to pass as an argument (leave blank for no parameters)varName
be the variable name of the given parameter And remember that you can create as many parameters as you'd like.
Possibly the most common for of declaration.