The definition of a method is similar to the definition of a static method that we have already seen, but in the header of the method the static keyword does not appear. This indicates that the method requires an invocation object.
Hence, the definition of a method is constituted by:
header block
public resultType methodName(formalParameters)
where (as for the static methods)
{
statements}