Is private is a keyword in Java?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at University of California, Los Angeles (UCLA), Lives in Los Angeles, CA
private is a Java keyword which declares a member's access as private. That is, the member is only visible within the class, not from any other class (including subclasses). The visibility of private members extends to nested classes.
2023-05-12 14:09:52
评论(499)
Helpful(122)
Helpful
Helpful(2)

Sophia Moore
QuesHub.com delivers expert answers and knowledge to you.
private is a Java keyword which declares a member's access as private. That is, the member is only visible within the class, not from any other class (including subclasses). The visibility of private members extends to nested classes.