class Example
{
public static void main
(String[] args
) {
new Child().bar();
}
}
class Parent {
protected void foo() {
System.
out.
println("Parent#foo"); }
public void bar() {
this.foo();
}
}
class Child extends Parent {
@Override
protected void foo() {
System.
out.
println("Child#foo"); }
}
Y2xhc3MgRXhhbXBsZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykKCXsKCQluZXcgQ2hpbGQoKS5iYXIoKTsKCX0KfQpjbGFzcyBQYXJlbnQgewoJcHJvdGVjdGVkIHZvaWQgZm9vKCkgewoJCVN5c3RlbS5vdXQucHJpbnRsbigiUGFyZW50I2ZvbyIpOwoJfQoJcHVibGljIHZvaWQgYmFyKCkgewoJCXRoaXMuZm9vKCk7Cgl9Cn0KY2xhc3MgQ2hpbGQgZXh0ZW5kcyBQYXJlbnQgewoJQE92ZXJyaWRlCglwcm90ZWN0ZWQgdm9pZCBmb28oKSB7CgkJU3lzdGVtLm91dC5wcmludGxuKCJDaGlsZCNmb28iKTsKCX0KfQ==