Vidyalelo
Java Programming · Q74

Miscellaneous Java

Programming · Java Programming · question 74

Q74

How can a protected modifier be accessed?

A.
accessible only within the class
B.
accessible only within package
C.
accessible within package and outside the package but through inheritance only
Answer
D.
accessible by all

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board