267. 부모 생성자에서 부른 재정의 메서드와 필드 초기화 시점
다음 Java 프로그램의 실행 결과를 쓰시오.
1class Shape {2Shape() {3System.out.println(describe());4}56String describe() {7return "shape";8}9}1011class Box extends Shape {12String label = "box";13int w;1415Box(int w) {16this.w = w;17System.out.println(describe());18}1920@Override21String describe() {22return label + ":" + (w * 2);23}24}2526public class Main {27public static void main(String[] args) {28Shape s = new Box(4);29System.out.println(s.describe().length());30}31}