What is the output of the following Java program?
class A { A() { System.out.println("Constructor A"); } public void func() { System.out.println("Member function A"); } } class B extends A { B() { System.out.println("Constructor B"); } public void func() { System.out.println("Member function B"); } } public class Hello { public static void main(String args[]) { B b=new B(); b.func(); } }
Reveal answer
Fill a bubble to check yourself