Java View all facts Glossary Help |
syntactic unit > keyword > access modifier > private |
private | ||||
subject | fact |
private | declares private access | |
has definition A keyword that means a variable or method is only accessible within its class | ||
is a subtopic of Access Control | ||
is an instance of access modifier | ||
is used to declare private method | ||
may not be used when declaring members of an interface | ||
means that a member is only accessible to its class | ||
access modifier | has purpose to control which other code can have access to a method or variable | |
precedes the definition of a method, instance variable or class variable | ||
see also access mode | ||
syntactic unit | has syntax rule bold = mandatory |