Java View all facts Glossary Help |
syntactic unit > keyword > access modifier > private |
private comparison table |
Subject | mean that | 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 | ||||
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 |
Next access modifier: protected Up: access modifier Previous access modifier: access modifier of an overriding method