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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?