KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > T125r3b


1
2 class T125r3a {
3     T125r3a() { m(); }
4     void m() {}
5 }
6 class T125r3b extends T125r3a {
7     int i = 0;
8     String JavaDoc s = null;
9     void m() {
10         i = 1;
11         s = "oops";
12     }
13     public static void main(String JavaDoc[] args) {
14         T125r3b t = new T125r3b();
15         System.out.print(t.i + " " + t.s);
16     }
17 }
18
Popular Tags