Methods also have a signature, which you could see as the recipe that describes how the method is to be called. The important parts of a method signature include the method name, the return type, and the parameters. It also contains modifiers that are used to “modify” the behavior of the method.
Let’s decipher our
Main method signature shown in Figure 4.1 with regard to these concepts:
One modifier, the
static keyword, is applied to the method. This means the method does not operate on a specific instance of the containing type. To explain this further, we first have to learn about types and object-oriented programming, which ...