Object Oriented Software Engineering   View all facts   Glossary   Help
subject > programming language construct > data item > variable > instance variable
Next variableJava variable    Upvariable    Previous variableglobal variable   

instance variable
(data member, field)
subjectfact 
instance variableis a synonym of data member2001-08-30 14:55:09.0
is a synonym of field2001-08-30 14:55:35.0
has definition A data item present in all the instances of a class, normally used to implement associations and attributes2001-08-30 14:56:00.0
implements an attribute or association2001-08-30 14:56:00.0
is a subtopic of 2.3 - Instance Variables2001-08-30 14:56:00.0
is a kind of variable2001-08-30 14:56:00.0
should be as private as reasonably possible - almost never make them publiclink: chapter2section2.8.html#1010, 2001-08-30 14:56:00.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

Kinds of instance variable :