Access specifier provide restriction on class access Depend upon access specifier -->data types or method access
Default-------> class access attribute in same package. private-------> class member do not access in another class. public -------> any member of any class or any package can access other class or package. protected-----> To make allow to access some portion of data to share between packages by using protected keyword but in another package ,the class or property which you want to access should make inherit.
Plot number-56/1 Near Gurudwara LandMark : Opposite A.N.D college Govindpuri Metro station New Delhi Mobile number: 8826034620