Object Oriented Software Engineering View all facts Glossary Help |
| subject > programming language construct > data item > variable > global variable |
| global variable | ||||
| subject | fact | |||
| global variable | causes common coupling | ![]() |
| 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). | ![]() | |
| is a subtopic of 9.2 - Principles Leading to Good Design | ![]() | |
| is a kind of variable | ![]() | |
| were commonly used in older programming languages | ![]() | |
| variable | can contain different classes of objects depending on the type of the variable | ![]() |
| can refer to a particular object, several different objects during the execution of a program, or no object at all | ![]() | |
| has scope | ![]() | |
| has type | ![]() | |
| should have comment if it is non-obvious | ![]() |