Access Modifiers – Public, Private, Protected & Default
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:
https://noidatut.com/oops-using-java/...