package zh.codegym.task.task15.task1526; /* 调试、调试和再调试 */ public class Solution { public static void main(String[] args) { new B(6); } public static class A { private int f1 = 7; public A(int f1) { this.f1 = f1; initialize(); } protected void initialize() { System.out.println(f1); } } public static class B extends A { protected int f1 = 3; public B(int f1) { super(f1); this.f1 += f1; initialize(); } protected void initialize() { System.out.println(f1); } } }