Instance variable is a term used in object-oriented programming (OOP). It is a variable that is assigned to an instance of a class. An instance variable is therefore an attribute of a class that is created each time this class of the new object is instantiated. Instance variables have the same lifetime as the object to which they are assigned. The current values of the instance variables of an object describe the object state.