Although output match,task mismatch
package com.codegym.task.task15.task1526;
/*
Debug, debug, and again debug
*/
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(this.f1);
}
protected void initialize(int f1) {
System.out.println(f1);
}
}
public static class B extends A {
protected int f1 = 3;
public B(int f1) {
super(f1);
this.f1 += f1;
initialize(this.f1);
}
protected void initialize(int f1) {
System.out.println(f1);
}
}
}