Advertisements
Advertisements
प्रश्न
Explain instance variables.
लघु उत्तरीय
उत्तर
- 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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Class as the Basis of all Computation (Objects and Classes) - EXERCISES [पृष्ठ ३८४]