1 21 22 package org.apache.derbyTesting.functionTests.util; 23 24 27 28 public class SubClass extends ManyMethods 29 { 30 31 static int OVERLOADED_INTSTATIC = 2; 32 public static int OVEROVERLOADED_INTSTATIC = 2; 33 34 public int intSubClassOnly; 35 36 public SubClass(int value) 37 { 38 super(value); 39 intSubClassOnly = value * value; 40 } 41 42 public static SubClass staticSubClass(Integer value) 43 { 44 return new SubClass(value.intValue()); 45 } 46 47 public String parmType(Double value) 48 { 49 return "java.lang.Double parameter in SubClass"; 50 } 51 52 public String parmType(Integer value) 53 { 54 return "java.lang.Integer parameter in SubClass"; 55 } 56 57 public static int overloadedStaticMethod() 58 { 59 return 2; 60 } 61 } 62 | Popular Tags |