Start learning →

Which pair of keywords typically controls visibility in Java and C++?

Athis and super
Bstatic and final
Cpublic and private
Dtry and catch
Answer & Solution
Correct answer: C. public and private
Keywords such as public and private allow programmers to control member visibility.
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 →