What is the output of the following code?
```java
class Parent {
String greet() { return "Parent"; }
}
class Child extends Parent {
String greet() { return "Child"; }
}
Parent p = new Child();
System.out.println(p.greet());
```
-
A
Parent
-
B
Child
-
C
Compilation error
-
D
null