package abc; public class Acc { protected int xyz=10; public static void main(String[] args) { def.AccExt v = new def.AccExt(); System.out.println("foo=" + v.foo); System.out.println("xyz=" + v.xyz); } }