class Phone {
static void call() {
System.
out.
println("Call-Phone"); }
}
class SmartPhone extends Phone{
static void call() {
System.
out.
println("Call-SmartPhone"); }
}
public class Main {
public static void main
(String[] args
) { Phone phone = new Phone();
Phone smartPhone = new SmartPhone();
phone.call();
smartPhone.call();
}
}
Y2xhc3MgUGhvbmUgewpzdGF0aWMgdm9pZCBjYWxsKCkgewpTeXN0ZW0ub3V0LnByaW50bG4oIkNhbGwtUGhvbmUiKTsKfQp9CmNsYXNzIFNtYXJ0UGhvbmUgZXh0ZW5kcyBQaG9uZXsKc3RhdGljIHZvaWQgY2FsbCgpIHsKU3lzdGVtLm91dC5wcmludGxuKCJDYWxsLVNtYXJ0UGhvbmUiKTsKfQp9CnB1YmxpYyBjbGFzcyBNYWluIHsKcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewpQaG9uZSBwaG9uZSA9IG5ldyBQaG9uZSgpOwpQaG9uZSBzbWFydFBob25lID0gbmV3IFNtYXJ0UGhvbmUoKTsKcGhvbmUuY2FsbCgpOwpzbWFydFBob25lLmNhbGwoKTsKfQp9