Java View all facts Glossary Help |
syntactic unit > keyword > access modifier > protected |
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 method | visibility modifier | keyword | private, protected, public | |||
protected | declaring members of an interface | protected method | 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 | access modifier |
Next access modifier: public Up: access modifier Previous access modifier: private