Vidyalelo
Java Programming · Q24

Declaration and Access Control

Programming · Java Programming · question 24

Q24

Which access modifier allows a class member to be accessed from any class in the same package but not from outside?

A.
protected
B.
private
C.
public
D.
default
Answer

Answer: Option D

Solution

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