-
What is private in Java?
包中
成员 类中
Questioner:Owen Gonzales 2023-05-05 14:09:52
The most authoritative answer in 2024
-

-
Julian Davis——Works at the International Finance Corporation, Lives in Washington, D.C., USA.
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 “包中、成员、类中”,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.