Definition of a variable

A variable is a value that can change, depending on conditions or on information passed to the program. A computer program is a list of instructions that tell the computer what to do. It also produces information on the data that the program uses when it is executing. The data consists of constants or fixed values that never change and variable values (which are usually initialized to "0" or some other default value because the actual values will be supplied by a program's user). Usually, both constants and variables are defined as certain data types. Each data type prescribes and limits the form of the data. Examples of data types include: an integer expressed as a decimal number, or a string of text characters, usually limited in length.

In object-oriented programming, each object contains the data variables of the class it is an instance of. The object's methods are designed to handle the actual values that are supplied to the object when the object is being used.

piesoftwareinc@piesoftwareinc.co.uk

Return To Homepage

AG00149_.GIF (1902 bytes)

piesoftwareinc@piesoftwareinc.co.uk

Return To Homepage

PIE Software Inc. 09/07/2001


Copyright (C) PIE Software Inc 1997-2000 All Rights Reserved