KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > polymorphic > SubClass


1 package test.polymorphic;
2
3 public class SubClass extends SuperClass {
4
5     public SubClass() {
6     }
7
8     public SubClass(int i) {
9         super(i);
10         PolymorphicTest.LOG.append("child " + i).append(" ");
11     }
12
13     public SubClass(String JavaDoc s) {
14         super(s);
15         PolymorphicTest.LOG.append("child " + s).append(" ");
16     }
17
18     public synchronized void methodTest() {
19         PolymorphicTest.LOG.append("child ");
20         super.methodTest();//this call is NOT a joinpoint
21
super.methodTest(1);//neither this one
22
//super.some();//this one neither
23
}
24
25
26 }
Popular Tags