KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Test24


1 class HelperWithParams {
2
3     public static void main(String JavaDoc [] args){
4     }
5     public HelperWithParams(int x, int y){
6         
7     }
8     
9     public HelperWithParams(){
10         
11     }
12     
13     public void action(){
14         System.out.println("Helper");
15     }
16 }
17 public class Test24 {
18
19     public static void main (String JavaDoc [] args){
20         Test24 t24 = new Test24();
21     }
22
23     public void run(final int j){
24         class MyHelper1 extends HelperWithParams {
25
26             public MyHelper1(){
27             }
28             public MyHelper1(int x, int y){
29             }
30             public void action(){
31                 System.out.println("Smile Anon: "+j);
32             }
33         };
34         new MyHelper1(2, 3).action();
35     }
36 }
37
Popular Tags