A method is a named set of instructions to perform a task.