Java View all facts Glossary Help |
member > instance member > instance variable |
instance variable comparison table |
Subject | refer to | be accessible to | declare anywhere in | declare by | make | have | be a member of | be | initialize by | is a kind of | is a synonym of | is a subtopic of | implement | have syntax rule | have purpose | place in | destroy in | access by | have access modifier | define by | be part of | has part | has definition | is partitioned into | maintain | refer you | contain |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
instance member | member | Members | instance method, instance variable | ||||||||||||||||||||||||
member variable | a class or an object or a primitive datum | the code in its class | a class outside of a method | giving the data type followed by the name of the variable | comment if it is non-obvious | a class or an object | as private as possible | an assignment statement | variable | field | bold = mandatory | to refer to an object or a class or a primitive datum | the block where it is declared | other variables and methods in any class in the same package by default | value | class variable, instance variable | only values that are of the same type as the variable or a subtype of the variable's type | ||||||||||
instance variable | an object or a primitive | the code in its class | a class outside of a method | giving the data type followed by the name of the variable | private to prevent direct access to instance variable - accessor methods should be used instead to protect data abstraction | comment if it is non-obvious | a class or an object | as private as reasonably possible - almost never make an instance variable public | an assignment statement | member variable | object variable | Members | an attribute or an association | bold = mandatory | to refer to an object or a class or a primitive datum | a class such that there is no needless duplication of it, and such that it is useful in all the subclasses of the class in which it is defined | the block where it is declared | all methods of its class | an instance variable definition | an object | value | Any item of data that is associated with a particular object. | part of its object's state | join the name of the variable with a dot to the instance variable name. Example: variableName.instanceVariableName | only values that are of the same type as the variable or a subtype of the variable's type |
Next instance member: instance method Up: instance member, member variable