Penguin

A Function is a piece of code (SourceCode or MachineCode) which operates as a discrete, independent entity. Structured languages such as C and Pascal have functions, as do functional languages such as Lisp and Scheme. ObjectOrientation introduced Methods, which are functions associated with some data (i.e. an object) or a class.

InLining is a function-level optimisation.