Functions and methods are almost the same thing. They can both be called to execute the code in
them. The difference between a function and a method is that a method will always be attached to
an object. Usually methods change something about that particular object (you can think of the
attached object as a sort of permanent argument passed to the method).
A method, like a function, is a set of instructions that perform a task. The difference is that a method is associated with an object, while a function is not.