data type

views updated

data type An abstract set of possible values that an instance of the data type may assume, given either implicitly, e.g. INTEGER, REAL, STRING, or explicitly as, for example, in Pascal: TYPE color = (red, green, orange)

The data type indicates a class of internal representations for those values.

Types may be defined in terms of other more primitive types, such as arrays of integers. Some languages consider procedures or functions as data types, which can also be used in the construction of more complex types.

See also abstract data type.