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