A method is always written within parentheses. The name of the method is given followed by a list of zero or more parameters. Methods can have optional parameters. Optional parameters use a default value when a specific value is not given.
A method is always written within parentheses. The name of the method is given followed by a list of zero or more parameters. Methods can have optional parameters. Optional parameters use a default value when a specific value is not given.