Start learning →

Which access specifier allows any code to access a class member by name?

APrivate
BPublic
CSealed
DProtected
Answer & Solution
Correct answer: B. Public
The public access specifier allows any external code to access the member.
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 →