الرجوع
تسجيل الدخول

What is the output of this program?

class Parent {
    Parent(String name) {
        System.out.println("Parent Constructor with name: " + name);
    }
}

class Child extends Parent {
    Child() {
        super("Test");
        System.out.println("Child Constructor");
    }
}

public class Test {
    public static void main(String[] args) {
        new Child();
    }
}