Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What are access modifiers for a class?

This is a common question for all programmers. This is the key startup for the code.

user-image
Question added by Ubaid sayeed Mohd abdul sayeed , Senior Programmer , Moksha solutions
Date Posted: 2016/09/23
hassan  assi
by hassan assi , Android/React Native Developer , Apps2you

used for controlling the access of a class, methods ,varaibles or constructor .

It could be private which means only visible to the class

or public which can be accessed everywhere 

or protected which can be accessed  by any subclass in any package or in any class within the package of the protected class

More Questions Like This