Java View all facts Glossary Help |
| syntactic unit > keyword > access modifier > protected |
| protected | ||||
| subject | fact | |||
| protected | declares protected access | ![]() |
| has definition A keyword that indicates that a method or variable may be accessed by any object in the same class (and its subclasses including those in a different compilation unit in another package), by all objects in the same compilation unit, and by all objects in the same package | ![]() | |
| is a subtopic of Access Control | ![]() | |
| is an instance of access modifier | ![]() | |
is used to declare protected method ![]() | ![]() | |
| may not be used when declaring members of an interface | ![]() | |
| 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 | ![]() |