Java View all facts Glossary Help |
syntactic unit > keyword > access modifier |
access modifier comparison table |
Subject | mean that | allow | use when | declare | has definition | modify | is a kind of | is an instance of |
---|---|---|---|---|---|---|---|---|
access modifier of an overriding method | less access than the overridden method's access modifier allows | access modifier | ||||||
private | a member is only accessible to its class | declaring members of an interface | private method | A keyword that means a variable or method is only accessible within its class | access modifier | |||
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 | ||||
public | a public class, public method or public variable | A keyword that indicates that a method, class or variable may be accessed by any object | methods, classes, and variables | access modifier |
Next keyword: boolean^3 Up: keyword Previous keyword: abstract