What will happen when the following code is compiled and executed?
class Bird {
void fly() {
System.out.println("Bird is flying");
}
}
class Parrot extends Bird {
@Override
void fly() {
super.fly();
System.out.println("Parrot is flying");
}
}
class Test {
public static void main(String[] args) {
Bird b = new Parrot();
b.fly();
}
}