best answer > What is private in Java 2024?- QuesHub | Better Than Quora
  • 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 >>
    +119962023-05-09 14:09:52

About “包中、成员、类中”,people ask:

READ MORE:

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.

分享到

取消