Java   View all facts   Glossary   Help
syntactic unit > keyword > access modifier > protected
Next access modifierpublic    Upaccess modifier    Previous access modifierprivate   

protected
subjectfact 
protecteddeclares protected accessadded by: WH, 2001-10-19 11:37:45.0
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 packageadded by: JK, source: On To Java, 2001-10-19 11:37:45.0
is a subtopic of Access Control2001-10-19 11:37:45.0
is an instance of access modifieradded by: JK, 2001-10-19 11:37:45.0
is used to declare protected method    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:45.0
may not be used when declaring members of an interfacesource: Sun Java Tutorial, 2001-10-19 11:37:46.0
access modifierhas purpose to control which other code can have access to a method or variable    2001-10-19 11:35:59.0
precedes the definition of a method, instance variable or class variable    2001-10-19 11:35:59.0
see also access mode2001-10-19 11:35:59.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0