Question: what is the difference between method and function?
Answer: 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.