best answer > Can you inherit from a private class 2024?- QuesHub | Better Than Quora
  • Can you inherit from a private class 2024?

    inherited does inherit

    Questioner:Harper Gonzales 2023-05-05 12:30:24
The most authoritative answer in 2024
  • Lucas Rogers——Works at the International Development Association, Lives in Washington, D.C., USA.

    Functionally, it's not inherited. But ideally, it is. A subclass does not inherit the private members of its parent class. However, if the superclass has public or protected methods for accessing its private fields, these can also be used by the subclass.read more >>
    +119962023-05-14 12:30:24

About “inherited、does、inherit”,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.

分享到

取消