Skip to content

Instantly share code, notes, and snippets.

@fermopili
Created March 19, 2017 13:16
Show Gist options
  • Save fermopili/5dd0701d9c5f076e00873b64cd05a5ee to your computer and use it in GitHub Desktop.
Save fermopili/5dd0701d9c5f076e00873b64cd05a5ee to your computer and use it in GitHub Desktop.
com.javarush.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();
}
private 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);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment