+ 2
What is the difference between private and protected specifiers ?
Needs explaination with their properties.....thanks
1 Answer
+ 2
`private` hides from other classes within the package. `public` exposes to classes outside the package. `protected` is a version of `public` restricted only to subclasses.
you may find detailed docs here
http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html