01: package test.polymorphic;
02:
03: public class SuperClass {
04:
05: public SuperClass() {
06:
07: }
08:
09: public SuperClass(int i) {
10: PolymorphicTest.LOG.append("parent " + i).append(" ");
11: }
12:
13: public SuperClass(String s) {
14: PolymorphicTest.LOG.append("parent " + s).append(" ");
15: }
16:
17: public synchronized void methodTest() {
18: PolymorphicTest.LOG.append("parent ");
19: }
20:
21: public synchronized void methodTest(int i) {
22: PolymorphicTest.LOG.append("parent " + i + " ");
23: }
24: }
|