best answer > Can you override a protected method 2024?- QuesHub | Better Than Quora
  • Can you override a protected method 2024?

    方法 子类 重写

    Questioner:Zoe Hall 2023-05-05 12:30:28
The most authoritative answer in 2024
  • Amelia Collins——Studied at the University of Manchester, Lives in Manchester, UK.

    Protected can be accessed only by subclasses in other packages. Classes in the same package can also access protected fields, methods and constructors as well, even if they are not a subclass of the protected member's class. Override : An instance method in a subclass with the same signature.read more >>
    +119962023-05-15 12:30:28

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.

分享到

取消