renamed all modules

This commit is contained in:
Andy Clement
2014-01-15 11:36:24 -08:00
parent 342420b2ed
commit ceef61cf98
1055 changed files with 301 additions and 259 deletions

View File

@@ -0,0 +1,31 @@
package supercalls;
class OverloadSuperclass {
protected String s = "s";
// public String toString() {
// return "instance of " + OverloadSuperclass.class.toString();
// }
}
public class OverloadExample extends OverloadSuperclass {
class OverloadExampleInner {
public String toString() {
return OverloadExample.super.toString();
// return OverloadExample.super.s;
}
}
public String toString() {
OverloadExampleInner oi = new OverloadExampleInner();
return oi.toString();
}
public static void main(String[] args) {
OverloadExample o = new OverloadExample();
System.out.println(o);
}
}

View File

@@ -0,0 +1,15 @@
package supercalls;
public class Runner {
public static Super top = new Super();
public static Sub bottom = new Sub();
public int runSubMethod() {
return bottom.method();
}
public String runSubToString() {
return bottom.toString();
}
}

View File

@@ -0,0 +1,5 @@
package supercalls;
public class Sub extends Super {
}

View File

@@ -0,0 +1,11 @@
package supercalls;
public class Sub002 extends Super {
public int method() {
return super.method();
}
//
// public String toString() {
// return super.toString();
// }
}

View File

@@ -0,0 +1,7 @@
package supercalls;
public class Super {
public int method() {
return 42;
}
}