Computer Programming Languages -- Types

By Herbert J. Bernstein

© Copyright 2000 Herbert J. Bernstein

Two houses built on the same size lot may have very different organizations of rooms. One may be a colonial, another an A-frame, another a ranch. These are different types of houses. Similarly we may have different types of variables that we use in allocating computer memory (see the discussion of computer memory). We abstract the organiztions of data in variables and speak of data types. Implict in any consideration of variable types and data types is an understanding of what operations may be performed, and how those operations will be performed. When we make the operations, actions or methods associated with a type explicit, we speak of it as a class and the instances of the class as objects.

The most elementary data type on most computers is the bit, which is not often provided as a variable type in programming languages, but which is used as the type in terms of which all other types are directly or indirectly defined. (There have been computers based on non-binary number systems, but the common practice these days is to reference everything to an underlying binary representation.) See the discussion of numbers.

In any given programming language, some data types are considered basic parts of the language and are called primitive or elementary types, and other organizations of data are derived from those types.



Last Updated on 25 March 2000
By Herbert J. Bernstein
Email: yaya@bernstein-plus-sons.com