Function or a method is a named callable piece of code which performs some operations and optionally returns a value. In C language the term
function is used.
Java & C# people would say it a method (and a
function in this case is defined within a class/object).
read more >>