हिंदी

A ______ variable is a common field for all the objects of a class. - Computer Applications

Advertisements
Advertisements

प्रश्न

A ______ variable is a common field for all the objects of a class. 

विकल्प

  • Local variable

  • Global variable

  • Class variable

  • Instance variable

MCQ
रिक्त स्थान भरें

उत्तर

Class variable

Explanation:

A class variable, or static variable, is a shared attribute among all instances of a class. It is associated with the class rather than with any individual object. Every instance of that class has a common copy of the variable.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Encapsulation and Inheritance - EXERCISES [पृष्ठ ४४४]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 8 Encapsulation and Inheritance
EXERCISES | Q I. 3. | पृष्ठ ४४४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×