What will be the output of the following code?
class Parent {
String message = "Parent";
void display() {
System.out.println(message);
}
}
class Child extends Parent {
String message = "Child";
void display() {
super.display();
System.out.println(message);
}
}
public class Test {
public static void main(String[] args) {
Child obj = new Child();
obj.display();
}
}