# Function

Deutsch (de) English (en) español (es) français (fr)

## Overview

A function is a declaration of a routine which may be invoked

• from within the unit that declares it
• from outside the unit if the function is public,
• or from within a program

The routine returns a value as part of its definition. A routine that does not return a value as part of its definition is a procedure.

A function which is part of an object is called a property and can be assigned/return a value (if you can't assign a value, it would be a method)

## Examples

 function add(c1, c2 : integer) : integer;
end.