company logo

Method declarations

Method declarations are not really variables, but are referenced similar to variables and have a lot of definition details in common with variables.

Method definition define a method, its parameter list and its return value. After a method has been declared, it can be used in an expression or in other methods.