A special type of function that can only be called in a specific context.

It can only be called from an object – as it is defined in the class of that object – whereas a function can be called from anywhere.

Note that methods are an object-oriented concept and so for some languages, where object-oriented programming is not used, the term method means the same as the term function and vice versa.