Java   View all facts   Glossary   Help
syntactic unit > keyword > access modifier > protected
Next access modifier: public    Up: access modifier    Previous access modifier: private   

protected comparison table
Subject use when declare has definition is a synonym of is a kind of is partitioned into is an instance of
access modifier  A keyword that specifies how restricted the access is to a class or interface or variable or methodvisibility modifierkeywordprivate, protected, public 
protecteddeclaring members of an interfaceprotected methodA 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   access modifier

Next access modifier: public    Up: access modifier    Previous access modifier: private