What is an Instance variable

Instance variable: It is a non-static field of a class. Each and every individual object of a class has its own copy of this field. This is in contrary to a class variable that is shared by all instances of class. Instance variables are employed to model the attributes of a class.

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.