11
What is the output of the following program?
public class Main {
public static void main(String[] args) {
A a = new B();
System.out.println(a.f());
}
}
class A { String f() { return "A"; } }
class B extends A { String f() { return "B"; } }DiscussEasy