Welcome to "manohar academy".
In this lesson we are going to learn about package scope.
public classes are accessible even outside the package in which they are defined.
But non-public classes are accessible only inside the package, in which they are defined. Hence they are called package scoped classes.
Similar to classes the class members can also be of package scoped.
private members are more restrictive. They are accessible only inside the class in which they are defined.
package members are less restrictive than private members but more accessible than public members. package scoped members are available inside the class in which they are defined as well as in other classes that belongs to same package.
public members are accessible even outside package and are less restrictive of all.
package scope will help to hide some classes and expose the classes that are meant for public..
visit my website : http://manoharacademy.com
java fundamentals : https://goo.gl/iN5oLb
java arrays : https://goo.gl/v2LUpf
java class design : https://goo.gl/IQbfRk
java inheritance : https://goo.gl/l1wDOO