ICSE Class 10 Computer Applications Question 7 of 17

Encapsulation — Question 11

Back to all questions
11
Question

Question 7(b)

What will be the visibility of a protected class ?

Answer

A protected class is visible to all the classes in the same package as well as to the classes outside the package that inherit the class.