what is the implications of public modifer
Answers
Answered by
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
1. default
2. private
3. protected
4. public
Similar questions