JavaCompilerCore/testBytecode/SuperTest.java
2017-10-06 13:31:36 +02:00

15 lines
243 B
Java

public class Superclass {
public void printMethod() {
System.out.println("Printed in Superclass.");
}
}
public class Subclass extends Superclass {
public void printMethod() {
super.printMethod();
}
}