best answer > Can we inherit private class in Java 2024?- QuesHub | Better Than Quora
  • Can we inherit private class in Java 2024?

    can inherited Private

    Questioner:Alexander Reed 2023-05-05 12:30:16
The most authoritative answer in 2024
  • Julian Carter——Works at the International Fund for Agricultural Development, Lives in Rome, Italy.

    Only protected and public methods/variables can be inherited and/or overridden. Private means you can Only access it in that class an no where else. Subclasses can only invoke or override protected or public methods (or methods without access modifiers, if the superclass is in the same package) from their superclasses.read more >>
    +119962023-05-08 12:30:16

About “can、inherited、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.

分享到

取消