java-inheritance1

Run Settings
LanguageJava
Language Version
Run Command
public class SuperDemo { public static void main(String[] args) { new SubClass().showMessage(); } } class SuperClass { int i = 50; } class SubClass extends SuperClass { int i =100; public void showMessage() { System.out.printf("super.i = %d, this.i = %d\n", super.i, this.i); } }
Editor Settings
Theme
Key bindings
Full width
Lines