English

Explain instance variables. - Computer Applications

Advertisements
Advertisements

Question

Explain instance variables. 

Short Answer

Solution

  1. Instance variables are declared within a class but not in any member methods. 
  2. They are also known as the fields of an object.
  3. 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]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 6 Class as the Basis of all Computation (Objects and Classes)
EXERCISES | Q IV. 8. (i) | Page 384
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×