package pack2; import pack1.ClassOne; public class ClassThree extends ClassOne { private ClassOne c1; public ClassThree () { c1 = new ClassOne(); // ClassThree a subclass of ClassOne, nor it is in the // same package, can access public or protected fields. super.num1 = 1; // Example #9 super.num2 = 2; // protected // Example #10 // super.num3 = 3; // package // Example #11 // super.num4 = 4; // private // Example #12 } }