instance variable : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

instance variable
a variable, part of an Object. These might better be called perObject variables since each instantiated object of this class will have its own private copy of this variable. They are allocated when the object is allocated via new.

Static methods may not access the instance variables of their class (or any other class for that matter), other than via some object reference, e.g. anObject.someField. Static methods may even access private instance variables in their class via some object reference.


This page is posted
on the web at:

http://mindprod.com/jgloss/instancevariable.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\instancevariable.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[98.84.18.52]
You are visitor number