1 public class ExtendProtectedSuper extends ProtectedSuper { 2 3 public static void main(String [] args){ 4 ExtendProtectedSuper e = new ExtendProtectedSuper("Jennifer"); 5 } 6 7 public ExtendProtectedSuper(String name){ 8 super(name); 9 } 10 } 11 class ProtectedSuper { 12 13 String name; 14 protected ProtectedSuper(String name){ 15 this.name = name; 16 System.out.println(this.name); 17 } 18 } 19 20 | Popular Tags |