A method is a block of code which only runs when it is called.
We can pass data, known as parameters, into a method.
Methods are used to perform certain actions, and they are also known as functions.
A method must be declared within a class. It is defined with the name of the method, followed by parentheses ().