Advertisements
Advertisements
Question
Explain instance variables.
Short Answer
Solution
- Instance variables are declared within a class but not in any member methods.
- They are also known as the fields of an object.
- Instance variables for various objects have different values.
shaalaa.com
Is there an error in this question or solution?
Chapter 6: Class as the Basis of all Computation (Objects and Classes) - EXERCISES [Page 384]