KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ExtendProtectedSuper


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