Java - Polymorphism
Find the error in this code related to runtime polymorphism:
class Parent {
void show() { System.out.println("Parent"); }
}
class Child extends Parent {
void show(int x) { System.out.println("Child " + x); }
}
public class Test {
public static void main(String[] args) {
Parent p = new Child();
p.show();
}
}