//This program is to show the accessing visibility of java through packages

package p1;

public class Protection{

	int n = 1;
	private int pri = 2;
	protected int pro = 3;
	public int pub = 4;

public Protection() {
	System.out.println("Base Constructor");
//	System.out.println("private" +pri);       //Since it is private so it can't be inherited by its subclass from the same package
	System.out.println("protected" +pro);
	System.out.println("public" +pub);
	}
}


