class Car{
}
class Audi extends Car{
void printColor(){
System.
out.
println("Current color "+color
); System.
out.
println("Current color "+super.
color); }
}
class M11 extends Audi{
void printColor(){
System.
out.
println("Current color "+color
); System.
out.
println("Current color "+super.
color); }
}
class Main{
public static void main
(String[] args
){ Audi car=new Audi();
car.printColor();
M11 caruana=new M11();
caruana.printColor();
}
}
Y2xhc3MgQ2FyewoJU3RyaW5nIGNvbG9yPSJCbGFjayI7Cn0KY2xhc3MgQXVkaSBleHRlbmRzIENhcnsKCVN0cmluZyBjb2xvcj0iV2hpdGUiOwoJdm9pZCBwcmludENvbG9yKCl7CgkJU3lzdGVtLm91dC5wcmludGxuKCJDdXJyZW50IGNvbG9yICIrY29sb3IpOwoJCVN5c3RlbS5vdXQucHJpbnRsbigiQ3VycmVudCBjb2xvciAiK3N1cGVyLmNvbG9yKTsKCX0KfQpjbGFzcyBNMTEgZXh0ZW5kcyBBdWRpewoJU3RyaW5nIGNvbG9yPSJEYXJrIjsKCXZvaWQgcHJpbnRDb2xvcigpewoJCVN5c3RlbS5vdXQucHJpbnRsbigiQ3VycmVudCBjb2xvciAiK2NvbG9yKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oIkN1cnJlbnQgY29sb3IgIitzdXBlci5jb2xvcik7Cgl9Cn0KCmNsYXNzIE1haW57CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKXsKCQlBdWRpIGNhcj1uZXcgQXVkaSgpOwoJCWNhci5wcmludENvbG9yKCk7CgkJTTExIGNhcnVhbmE9bmV3IE0xMSgpOwoJCWNhcnVhbmEucHJpbnRDb2xvcigpOwoJfQp9