best answer > Can you have private methods in an interface 2024?- QuesHub | Better Than Quora
  • Can you have private methods in an interface 2024?

    private can methods

    Questioner:Amelia Kim 2023-06-09 06:34:35
The most authoritative answer in 2024
  • Ryan Mitchell——Works at Spotify, Lives in Stockholm, Sweden

    According to the Java programming language scope of the private members is limited to the class in which it is declared and can be accessed only by methods of that class . But inteface doesn't have a method body hence there is no use of declaring private members inside an interface .Apr 16, 2012read more >>
    +119962023-06-12 06:34:35

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

分享到

取消