Start learning →

Which variable belongs to a class so all objects share a single copy?

AClass variable
BLocal variable
CDynamic variable
DRuntime variable
Answer & Solution
Correct answer: A. Class variable
A class variable belongs to the class itself and is shared across all objects.
Practise this question with Quill — ICSE Class 10 →

Keep practising Classes, Encapsulation and Scope

Browse all Classes, Encapsulation and Scope questions for ICSE Class 10, or explore more Computer Applications topics.

Start a Classes, Encapsulation and Scope lesson →