class Base {
final public void show() {
System.
out.
println("Base::show() called"); }
}
class Derived extends Base {
public void show() {
System.
out.
println("Derived::show() called"); }
}
class Main {
public static void main
(String[] args
) { Base b = new Derived();;
b.show();
}
}
Y2xhc3MgQmFzZSB7CiAgICBmaW5hbCBwdWJsaWMgdm9pZCBzaG93KCkgewogICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJCYXNlOjpzaG93KCkgY2FsbGVkIik7CiAgICB9Cn0KICAKY2xhc3MgRGVyaXZlZCBleHRlbmRzIEJhc2UgewogICAgcHVibGljIHZvaWQgc2hvdygpIHsKICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiRGVyaXZlZDo6c2hvdygpIGNhbGxlZCIpOwogICAgfQp9CiAgCmNsYXNzIE1haW4gewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIEJhc2UgYiA9IG5ldyBEZXJpdmVkKCk7OwogICAgICAgIGIuc2hvdygpOwogICAgfQp9