JavaTXCompilerInJavaTX/testBytecode/SuperTest.java

15 lines
243 B
Java
Raw Normal View History

2017-10-06 11:31:36 +00:00
public class Superclass {
public void printMethod() {
System.out.println("Printed in Superclass.");
}
}
public class Subclass extends Superclass {
public void printMethod() {
super.printMethod();
}
}