Object Oriented Software Engineering View all facts Glossary Help |
| subject > programming language construct > data item > variable > class variable |
| class variable (static variable) | ||||
| subject | fact | |||
| class variable | has definition A data item present in a class that is shared by all instances of that class | ![]() |
| has a value that is shared by all instances of a class | ![]() | |
| has purpose storing: | ![]() | |
| is a subtopic of The Basics of Java | ![]() | |
| is shared by all instances of the class | ![]() | |
| is a kind of variable | ![]() | |
| should not be overused | ![]() | |
| is a synonym of static variable | ![]() | |
| 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 | ![]() |
Kinds of class variable :