Computer Science, asked by nikhilkumar812345, 1 year ago

what is the implications of public modifer

Answers

Answered by satakshimisha29
2
You must have seen public, private and protected keywords while practising java programs, these are called access modifiers. An access modifier restricts the access of a class, constructor, data member and method in another class. In java we have four access modifiers:
1. default
2. private
3. protected
4. public
Similar questions