Start learning →

Which modifier allows access to the class itself and all its subclasses?

APrivate
BInternal
CStatic
DProtected
Answer & Solution
Correct answer: D. Protected
Protected access allows both the declaring class and its subclasses access.
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 →