What is the difference between a function and a method?

In an Object Oriented Programming (OOP) language like Java, it is called a method. In a procedural language (like QBASIC or PHP) it is called a function. They are the same thing. Most people use them interchangeably. -DJ Craig A function returns a value and method does not return a value. A function that doesn't return a value is called (procedure / subroutine)