Object Oriented Software Engineering   View all facts   Glossary   Help
subject > programming language construct > data item > variable > global variable
Next variableinstance variable    Upvariable    Previous variableclass variable   

global variable
subjectfact 
global variablecauses common coupling2001-08-30 14:55:43.0
has definition A variable that is accessible from all procedures in the system, or in the scope of just a specific set of modules (e.g. a Java package).2001-08-30 14:55:43.0
is a subtopic of 9.2 - Principles Leading to Good Design2001-08-30 14:55:43.0
is a kind of variable2001-08-30 14:55:43.0
were commonly used in older programming languages2001-08-30 14:55:43.0
variablecan contain different classes of objects depending on the type of the variable2001-08-30 14:58:18.0
can refer to a particular object, several different objects during the execution of a program, or no object at all2001-08-30 14:58:18.0
has scope2001-08-30 14:58:18.0
has type2001-08-30 14:58:19.0
should have comment if it is non-obvious2001-08-30 14:58:19.0