What are instance variables?

Ads
Ads

What are instance variables?


Java Coder
What are instance variables?
1 Answer(s)      5 years and a month ago
Posted in : Java Beginners
Ads

Hi,

What are instance variables?

thanks

View Answers

April 10, 2013 at 5:54 PM


Hi,

Each object of the class has its own set of values for these non-static variables so we can say that these are related to objects (instances of the class).Hence these variables are also known as instance variables. These variables take default values if not initialized.

Thanks,


Ads