Start learning →

What kinds of variables is a class method restricted to using?

AInstance variables only
BVolatile variables only
CClass variables only
DTransient variables only
Answer & Solution
Correct answer: C. Class variables only
A class method can only use class variables belonging to the class itself.
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 →