// package classes -- make a directory iitb/mech/rahul/mypackage
// keep this file under the last leaf mypackage and compile there
// set your CLASSPATH environment variable to the directory in which
// iitb directory will be located
// e.g. export CLASSPATH=$CLASSPATH:~rahul/   if iitb is in rahul's home directory

package iitb.mech.rahul.mypackage;


class InternalClass {

	public InternalClass (){};
	public void f () {
		System.out.println ("Internal::f");}

}

public class PackageDemo {
	private int i;
	protected int j;
	int k;

	PackageDemo (int x) { i=j=k=x; } // not accessible from outside!
	public PackageDemo (int x, int y, int z) { i=x; j=y; k=z;}

	public void f () {

		InternalClass iobj = new InternalClass ();
		iobj.f();			
		System.out.println ("Public::f " + i + " " +  j + " "  + k);
	}

}


