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