public class Driver { public static void main (String [] args) { pack1.ClassOne c1 = new pack1.ClassOne (); // Driver is not a subclass of class ClassOne, nor is it in // the same package, it can only access public fields. c1.num1 = 1; // Example #13 // c1.num2 = 2; // protected // Example #14 // c1.num3 = 3; // package // Example #15 // c1.num4 = 4; // private // Example #16 } }