+ 1

What is an instance variable

23rd Mar 2017, 1:02 PM
Tarun Chettiar
Tarun Chettiar - avatar
3 Answers
+ 12
A variable access through object (Or a variable defined inside a class Or a variable belonging to the object) is called an instance variable.
17th Apr 2017, 6:41 AM
Sachin Artani
Sachin Artani - avatar
+ 1
Roughly speaking, it's the same as a primitive (i.e. non-method) instance member.
23rd Mar 2017, 5:35 PM
Álvaro
+ 1
A variable that is not static. It therefore does not belong to the class itself, but a single instance of the class. That is, an object you create.
24th Mar 2017, 6:25 AM
1of3
1of3 - avatar