The most authoritative answer in 2024
-

-
Olivia Phillips——Studied at Princeton University, Lives in Princeton, NJ
A
private member is only accessible within the same class as it is declared. A member with no access modifier is only accessible within classes in the same package. A
protected member is accessible within all classes in the same package and within subclasses in other packages.
read more >>
About “private、protected、private”,people ask:
QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.