public class Test {
final void show() {
System.out.println("Test show()");
}
}
class B extends Test {
void show() {
System.out.println("B extends Test show()");
}
public static void main(String args[]) {
B obj = new B();
obj.run();
}
}
/*
run:
error: show() in B cannot override show() in Test
*/