Methods are pre-defined blocks of code that can be called (aka invoked) by naming the method and passing an appropriate list of arguments.
As an example, consider the the following call to the user-defined
method. This call passes arguments to the method giving the x-y coordinates of two
points. The method computes and returns the Euclidean distance between those two points.