Computer Science, asked by skjahirkhan, 1 year ago

what do you mean by private in java

Answers

Answered by shouryaanand
1
private is a Java keyword which declares a member's access as private. That is, the member is only visible within the class, not from any other class
hope it helps☺
Answered by 9772375923
0
a private member is only accessible within the same class as it is declared. a member with no access modifier is only accessible within classes in the same package. a protected member is accessible within subclasses in other packages.
Similar questions