Instance variable

From Wikipedia, the free encyclopedia

Jump to: navigation, search

In object-oriented programming with classes, an instance variable is a variable defined in a class, for which each object in the class has a separate copy.

An instance variable is the opposite of class variable, and it is a special type of instance member. An example of an instance variable is "private double length"

Personal tools