best answer > What is the difference between private and protected in Java 2024?- QuesHub | Better Than Quora
  • What is the difference between private and protected in Java 2024?

    private protected private

    Questioner:Harper Lee 2023-05-05 12:30:24
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 >>
    +119962023-05-14 12:30:24

About “private、protected、private”,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.

分享到

取消