Methods, procedures or encapsulation When creating a method, the word def is used in front of the method or the method gives a return type to clarify that is a method. There are three modifiers that can be used for a method: public, private, or protected. The default modifier in Groovy is public, so if no modifier is given, then it will automatically be public. Parameters for methods in Groovy are handled the same way as they are in Java, the parameter names mus differ from each other. In Groovy, if no parameters are given inside the method, Groovy has default parameters that are passed in. An example is def method(parameterA = 0, parameterB =0, parameterC=0) { } A main method in Groovy is as seen below. static void main(String[] args) { } Groovy also has instance methods. These methods can be accessed by instantiating an object to call upon the object. There are optional modifiers that can be used on methods. These include static, final, or s...