표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력/실행옵션
class Parent { int a = 10; } class Child extends Parent { int a = 20; void display() { System.out.println(a); System.out.println(this.a); System.out.println(super.a); } } public class prog { public static void main(String[] args) { Child ch = new Child(); ch.display(); } }