मराठी

Which of the following data is a separate field for all the objects of a class? - Computer Applications

Advertisements
Advertisements

प्रश्न

Which of the following data is a separate field for all the objects of a class? 

पर्याय

  • Local variable

  • Class variable

  • Instance variable 

  • Primitive variable 

MCQ

उत्तर

Instance variable

Explanation:

An instance variable is a non-static variable specified within a class. Each class object (instance) receives its own distinct copy of the instance variable, and the values of instance variables can differ for each class object.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 8: Encapsulation and Inheritance - EXERCISES [पृष्ठ ४४४]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×