Methods
Define and invoke reusable blocks of code using methods to return values and handle parameters.
We'll cover the following...
We'll cover the following...
Create methods
A variable is a named area of memory that holds a value of some type. Methods are similar, but instead of holding a value, methods are named blocks of instructions.
The basic syntax for creating a method is as follows: