/*
create a folder pic20
save the file into the folder pic20
compile by javac pic20/SubClass.java 
(don't change your folder to pic20)
to run the program, use
java pic20.SubClass
*/

package pic20;

/*
The example illustrates how you can access the members from the superclass
*/

public class SubClass extends SuperClass {
    public void accessTest() {
	// System.out.println(iamprivate);  // illegal
	System.out.println(iamprotected);
	System.out.println(iampublic);
	// privateMethod();  // illegal
	protectedMethod();
	publicMethod();
    }
    
    public void method() {
	System.out.println("I am a public method in the class SubClass.");
    }
    
    public static void main(String[] args) {
        new SubClass().accessTest();
    }
}
